Answer the question
In order to leave comments, you need to log in
Angular 6 does not see the *ng-repeat directive. How to fix?
This is what it says in the browser when running the SPA application:
Can't bind to 'ng-repeat' since it isn't a known property of 'option'. ("
]*ng-repeat="employee in apiValues" >>
app.component.html:
<select>
<option *ng-repeat="employee in apiValues" ></option>>
</select>
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { CommonModule } from '@angular/common';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
FormsModule,
HttpModule,
CommonModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question