April 2017
Beginner to intermediate
378 pages
7h 57m
English
The Ionic module or NgModule decorator bootstraps the Ionic app. If we open up any of the existing Ionic projects and look up src/app/app.module.ts file, we will see the following:
import { NgModule, ErrorHandler } from '@angular/core'; import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular'; import { MyApp } from './app.component'; import { HomePage } from '../pages/home/home'; import { AboutPage } from '../pages/about/about'; import { ContactPage } from '../pages/contact/contact'; @NgModule({ declarations: [ MyApp, HomePage, AboutPage, ContactPage ], imports: [ IonicModule.forRoot(MyApp) ], bootstrap: [IonicApp], entryComponents: [ MyApp, HomePage, AboutPage, ContactPage ], providers: [{ provide: ...Read now
Unlock full access