if your ngFor or ngIf not working - You might not have Common Module imported



import { CommonModule } from '@angular/common';


@NgModule({
  imports: [
    RouterModule.forRoot(appRoutes), HttpModule, ReactiveFormsModule, CommonModule
  ],
  declarations: [AddPersonComponent, SearchComponent, ListComponent],
  providers: [PersonService],
  exports: [
    RouterModule
  ]
})

Comments

Popular posts from this blog

Solving Sonarqube :- Project was never analyzed. A regular analysis is required before a branch analysis

spark - pyspark reading from excel files