mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
doc(config): update docs for NgModule
This commit is contained in:
@ -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`,
|
||||||
|
Reference in New Issue
Block a user