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

The specified initialization vector (IV) does not match the block size for this algorithm