mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Merge branch 'master' into alpha38
Conflicts: ionic/components/search-bar/search-bar.ts ionic/config/decorators.ts
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
/**
|
||||
* @ngdoc service
|
||||
* @name Config
|
||||
* @module ionic
|
||||
* @description
|
||||
* IonicConfig allows you to set the modes of your components
|
||||
*/
|
||||
|
||||
import {IonicPlatform} from '../platform/platform';
|
||||
import {isObject, isDefined, isFunction, extend} from '../util/util';
|
||||
|
||||
@@ -18,6 +26,29 @@ export class IonicConfig {
|
||||
/**
|
||||
* For setting and getting multiple config values
|
||||
*/
|
||||
|
||||
/**
|
||||
* @name settings()
|
||||
* @description
|
||||
* IonicConfig 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.
|
||||
*
|
||||
*
|
||||
* @usage
|
||||
* ```ts
|
||||
* import {IonicConfig} from 'ionic/ionic';
|
||||
* @App({
|
||||
* template: `<ion-nav [root]="root"></ion-nav>`
|
||||
* config: {
|
||||
* backButtonText: 'Go Back',
|
||||
* iconMode: 'ios',
|
||||
* modalEnter: 'modal-slide-in',
|
||||
* modalLeave: 'modal-slide-out',
|
||||
* tabBarPlacement: 'bottom',
|
||||
* viewTransition: 'ios',
|
||||
* }
|
||||
* })
|
||||
* ```
|
||||
*/
|
||||
settings() {
|
||||
const args = arguments;
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ import {Menu} from '../components/menu/menu';
|
||||
import {MenuToggle} from '../components/menu/menu-toggle';
|
||||
import {MenuClose} from '../components/menu/menu-close';
|
||||
import {Button} from '../components/button/button';
|
||||
import {Blur} from '../components/blur/blur';
|
||||
import {Content} from '../components/content/content';
|
||||
import {Scroll} from '../components/scroll/scroll';
|
||||
import {Refresher} from '../components/scroll/pull-to-refresh';
|
||||
@@ -48,6 +49,7 @@ export const IONIC_DIRECTIVES = [
|
||||
MenuClose,
|
||||
|
||||
Button,
|
||||
Blur,
|
||||
Content,
|
||||
Scroll,
|
||||
Refresher,
|
||||
|
||||
Reference in New Issue
Block a user