doc(config): update docs for NgModule

This commit is contained in:
mhartington
2016-10-07 14:09:33 -04:00
parent f87c1fee5e
commit c65f936952

View File

@ -18,16 +18,23 @@ import { isObject, isDefined, isFunction, isArray } from '../util/util';
* You can set the tab placement, icon mode, animations, and more here. * You can set the tab placement, icon mode, animations, and more here.
* *
* ```ts * ```ts
* import { ionicBootstrap } from 'ionic-angular'; * import { IonicApp, IonicModule } from 'ionic-angular';
* *
* ionicBootstrap(AppRoot, customProviders, { * @NgModule({
* declarations: [ MyApp ],
* imports: [
* IonicModule.forRoot(MyApp, {
* backButtonText: 'Go Back', * backButtonText: 'Go Back',
* iconMode: 'ios', * iconMode: 'ios',
* modalEnter: 'modal-slide-in', * modalEnter: 'modal-slide-in',
* modalLeave: 'modal-slide-out', * modalLeave: 'modal-slide-out',
* tabsPlacement: 'bottom', * tabsPlacement: 'bottom',
* pageTransition: 'ios', * pageTransition: 'ios'
* }); * }, {}],
* bootstrap: [IonicApp],
* entryComponents: [ MyApp ],
* providers: []
* })
* ``` * ```
* *
* *
@ -35,15 +42,17 @@ import { isObject, isDefined, isFunction, isArray } from '../util/util';
* Below is an example where an app can override any setting we want based on a platform. * Below is an example where an app can override any setting we want based on a platform.
* *
* ```ts * ```ts
* import { ionicBootstrap } from 'ionic-angular'; * import { IonicModule } from 'ionic-angular';
* * ...
* ionicBootstrap(AppRoot, customProviders, { * IonicModule.forRoot(MyApp, {
* tabsPlacement: 'bottom', * tabsPlacement: 'bottom',
* platforms: { * platforms: {
* ios: { * ios: {
* tabsPlacement: 'top', * tabsPlacement: 'top',
* } * }
* }); * }
* }
* ...
* ``` * ```
* *
* We could also configure these values at a component level. Take `tabsPlacement`, * We could also configure these values at a component level. Take `tabsPlacement`,