mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +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.
|
* 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
|
* ```ts
|
||||||
* import {Config} from 'ionic/ionic';
|
|
||||||
* @App({
|
* @App({
|
||||||
* template: `<ion-nav [root]="root"></ion-nav>`
|
* template: `<ion-nav [root]="root"></ion-nav>`
|
||||||
* config: {
|
* 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.
|
* 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
|
* ```ts
|
||||||
* import {Config} from 'ionic/ionic';
|
|
||||||
* @App({
|
* @App({
|
||||||
* template: `<ion-nav [root]="root"></ion-nav>`
|
* template: `<ion-nav [root]="root"></ion-nav>`
|
||||||
* config: {
|
* config: {
|
||||||
* 'tabbarPlacement': 'bottom',
|
* 'tabbarPlacement': 'bottom',
|
||||||
* platform: {
|
* platforms: {
|
||||||
* ios: {
|
* ios: {
|
||||||
* 'tabbarPlacement': 'top',
|
* 'tabbarPlacement': 'top',
|
||||||
* }
|
* }
|
||||||
|
Reference in New Issue
Block a user