Answers for "Can't bind to 'ngIf' since it isn't a known property of 'div'"

14

Can't bind to 'ngModel' since it isn't a known property of 'input'.

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

[...]

@NgModule({
  imports: [
    [...]
    FormsModule
  ],
  [...]
})
Posted by: Guest on April-29-2020
0

core.js:7813 Can't bind to 'ngIf' since it isn't a known property of 'div'

import { CommonModule } from '@angular/common';  
import { BrowserModule } from '@angular/platform-browser';
Posted by: Guest on February-04-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
0

core.js:7813 Can't bind to 'ngIf' since it isn't a known property of 'div'

@NgModule({
    imports: [CommonModule],
    declarations: [MyComponent]
  ...
})
class MyComponentModule {}
Posted by: Guest on February-04-2021

Code answers related to "Can't bind to 'ngIf' since it isn't a known property of 'div'"

Browse Popular Code Answers by Language