【发布时间】:2018-01-29 05:34:05
【问题描述】:
如果我们在 app.module 中导入 FormsModule 那么我们还需要在其他子模块中导入它才能在子模块中使用它吗?
@NgModule({
declarations: [
AppComponent,
LoginComponent,
SignupComponent,
],
imports: [
BrowserModule,
AppRoutingModule,
HttpModule,
FormsModule,
],
providers: [RestaurantsService, LoginAuthService],
bootstrap: [AppComponent]
})
export class AppModule { }
【问题讨论】:
标签: angular