mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
docs(config): updated platform to platforms and removed unnecessary imports
This commit is contained in:
@ -13,7 +13,6 @@ import {isObject, isDefined, isFunction, isArray, extend} from '../util/util';
|
||||
* Config lets you change multiple or a single value in an apps mode configuration. Things such as tab placement, icon changes, and view animations can be set here.
|
||||
*
|
||||
* ```ts
|
||||
* import {Config} from 'ionic/ionic';
|
||||
* @App({
|
||||
* template: `<ion-nav [root]="root"></ion-nav>`
|
||||
* config: {
|
||||
@ -29,12 +28,11 @@ import {isObject, isDefined, isFunction, isArray, extend} from '../util/util';
|
||||
*
|
||||
* Config can be overwritting at multiple levels, allowing deeper configuration. Taking the example from earlier, we can override any setting we want based on a platform.
|
||||
* ```ts
|
||||
* import {Config} from 'ionic/ionic';
|
||||
* @App({
|
||||
* template: `<ion-nav [root]="root"></ion-nav>`
|
||||
* config: {
|
||||
* 'tabbarPlacement': 'bottom',
|
||||
* platform: {
|
||||
* platforms: {
|
||||
* ios: {
|
||||
* 'tabbarPlacement': 'top',
|
||||
* }
|
||||
|
Reference in New Issue
Block a user