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.
*
* ```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',
* iconMode: 'ios',
* modalEnter: 'modal-slide-in',
* modalLeave: 'modal-slide-out',
* 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.
*
* ```ts
* import { ionicBootstrap } from 'ionic-angular';
*
* ionicBootstrap(AppRoot, customProviders, {
* import { IonicModule } from 'ionic-angular';
* ...
* IonicModule.forRoot(MyApp, {
* tabsPlacement: 'bottom',
* platforms: {
* ios: {
* tabsPlacement: 'top',
* }
* });
* }
* }
* ...
* ```
*
* We could also configure these values at a component level. Take `tabsPlacement`,