Tag: 离子骨架离子

ngModule中的entryComponents是什么?

我正在研究依赖于angular 2的Ionic应用程序( 2.0.0-rc0 )。 所以纳入了新的ngModules介绍。 我正在添加我的app.module.ts. 下面。 import { NgModule } from '@angular/core'; import { IonicApp, IonicModule } from 'ionic-angular'; import { MyApp } from './app.component'; import { Users } from '../pages/users/users'; @NgModule({ declarations: [ MyApp, Users ], imports: [ IonicModule.forRoot(MyApp) ], bootstrap: [IonicApp], entryComponents: [ MyApp, Users ] }) export class AppModule {} entryComponents在这里做什么? […]