mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
rename IonicComponent to ConfigComponent
This commit is contained in:
@@ -3,7 +3,7 @@ import {forwardRef, Directive, Host, View, EventEmitter, ElementRef} from 'angul
|
||||
import {Ion} from '../ion';
|
||||
import {IonicApp} from '../app/app';
|
||||
import {IonicConfig} from '../../config/config';
|
||||
import {IonicComponent} from '../../config/decorators';
|
||||
import {ConfigComponent} from '../../config/decorators';
|
||||
import {IonicPlatform} from '../../platform/platform';
|
||||
import * as gestures from './menu-gestures';
|
||||
|
||||
@@ -43,7 +43,7 @@ import * as gestures from './menu-gestures';
|
||||
* <ion-menu [content]="contentRef" type="overlay"></ion-menu>
|
||||
* ```
|
||||
*/
|
||||
@IonicComponent({
|
||||
@ConfigComponent({
|
||||
selector: 'ion-menu',
|
||||
inputs: [
|
||||
'content',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {Component, Directive, View, ElementRef, Host, Optional, forwardRef, Inject, Injector, NgZone, Renderer, ViewContainerRef} from 'angular2/angular2';
|
||||
|
||||
import {IonicComponent} from '../../config/decorators';
|
||||
import {ConfigComponent} from '../../config/decorators';
|
||||
import {NavController} from './nav-controller';
|
||||
|
||||
/**
|
||||
@@ -118,7 +118,7 @@ import {NavController} from './nav-controller';
|
||||
* out of the current pane and the new view into the new content-only pane.
|
||||
*
|
||||
*/
|
||||
@IonicComponent({
|
||||
@ConfigComponent({
|
||||
selector: 'ion-nav',
|
||||
inputs: [
|
||||
'root'
|
||||
|
||||
@@ -2,7 +2,7 @@ import {ElementRef, Pipe, NgControl, Renderer, View} from 'angular2/angular2';
|
||||
|
||||
import {Ion} from '../ion';
|
||||
import {IonicConfig} from '../../config/config';
|
||||
import {IonicComponent} from '../../config/decorators';
|
||||
import {ConfigComponent} from '../../config/decorators';
|
||||
|
||||
/**
|
||||
* @name Search Bar
|
||||
@@ -14,7 +14,7 @@ import {IonicComponent} from '../../config/decorators';
|
||||
* <ion-search-bar ng-control="searchQuery"></ion-search-bar>
|
||||
* ```
|
||||
*/
|
||||
@IonicComponent({
|
||||
@ConfigComponent({
|
||||
selector: 'ion-search-bar',
|
||||
inputs: [
|
||||
'list',
|
||||
|
||||
@@ -4,7 +4,7 @@ import {Ion} from '../ion';
|
||||
import {IonicApp} from '../app/app';
|
||||
import {NavController} from '../nav/nav-controller';
|
||||
import {ViewController} from '../nav/view-controller';
|
||||
import {IonicComponent} from '../../config/decorators';
|
||||
import {ConfigComponent} from '../../config/decorators';
|
||||
import {IonicConfig} from '../../config/config';
|
||||
import {Icon} from '../icon/icon';
|
||||
import * as dom from 'ionic/util/dom';
|
||||
@@ -60,7 +60,7 @@ import * as dom from 'ionic/util/dom';
|
||||
* of that Tabs component.
|
||||
*
|
||||
*/
|
||||
@IonicComponent({
|
||||
@ConfigComponent({
|
||||
selector: 'ion-tabs',
|
||||
defaultInputs: {
|
||||
'tabBarPlacement': 'bottom',
|
||||
|
||||
@@ -81,7 +81,7 @@ export function IonicView(args) {
|
||||
/**
|
||||
* TODO
|
||||
*/
|
||||
export function IonicComponent(config) {
|
||||
export function ConfigComponent(config) {
|
||||
return function(cls) {
|
||||
return makeComponent(cls, appendConfig(cls, config));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user