Angular 2 : No NgModule metadata found

后端 未结 28 1484
盖世英雄少女心
盖世英雄少女心 2020-11-30 05:31

I\'m brand new to Angular 2 and attempting to follow along with a video tutorial I found. Despite following all of the steps, Angular just won\'t work; I get the following e

28条回答
  •  一生所求
    2020-11-30 05:56

    you need to enable the ngModel directive. This is done by adding the FormsModule to the imports[] array in the AppModule.

    You then also need to add the import from @angular/forms in the app.module.ts file: import { FormsModule } from '@angular/forms';

提交回复
热议问题