Answers for "NG0303: Can't bind to 'ngForOf' since it isn't a known property of 'a'."

1

can't bind to 'ngmodeloptions' since it isn't a known property of 'input'

import { FormsModule } from '@angular/forms';

@NgModule({ imports: [ FormsModule ], })
Posted by: Guest on November-24-2020
0

Can't bind to 'ngForOf' since it isn't a known property of 'th'

// resolved by importing CommonModule not on the app.module.ts but 
// on the componentName.module.ts

import { CommonModule } from '@angular/common';
imports: [CommonModule]
Posted by: Guest on February-19-2021
1

Can't bind to 'ngForOf' since it isn't a known property of 'div'.

// older Angular versions
// import {BrowserModule, CommonModule} from '@angular/common';

import { BrowserModule } from '@angular/platform-browser'
..
..
@NgModule({
  imports: [BrowserModule, /* or CommonModule */],
  ..
})
Posted by: Guest on November-27-2020

Code answers related to "NG0303: Can't bind to 'ngForOf' since it isn't a known property of 'a'."

Browse Popular Code Answers by Language