에 의존 하는 Ionic앱 ( 2.0.0-rc0) 작업 중입니다 angular 2. 그래서 새로운 소개 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여기합니까? Components에 이미 정의되어 declarations있습니다. 그래서 반복해야 할 것은 무엇입니까? 여기에 컴포넌트를 포함시키지 않으면 어떻게 되나요?
declared에ngModule있지만 사용되지 않습니다를. angular.io/docs/ts/latest/cookbook/… entrycomponents –