📌  相关文章
📜  NG0303:无法绑定到“ngIf”,因为它不是“form”的已知属性. - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:43.184000             🧑  作者: Mango

代码示例1
// If you are using RC5 then import this:

import { CommonModule } from '@angular/common';  
import { BrowserModule } from '@angular/platform-browser';

// and be sure to import CommonModule from the module that is providing your component.

 @NgModule({
    imports: [CommonModule],
    declarations: [MyComponent]
  ...
})
class MyComponentModule {}