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

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

android build issue with version compatibility with agp and hilt : An exception occurred applying plugin request [id: 'com.google.dagger.hilt.android', version: '2.52']