mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
update component properties to array
https://github.com/angular/angular/issues/2013
This commit is contained in:
@ -70,9 +70,9 @@ class IonicApp {
|
||||
|
||||
@Directive({
|
||||
selector: '[parallax]',
|
||||
properties: {
|
||||
parallax: 'parallax'
|
||||
}
|
||||
properties: [
|
||||
'parallax'
|
||||
]
|
||||
})
|
||||
export class ParallaxEffect {
|
||||
constructor(
|
||||
|
@ -14,11 +14,11 @@ import {IonicComponent} from 'ionic/config/component'
|
||||
|
||||
@Component({
|
||||
selector: 'ion-aside',
|
||||
properties: {
|
||||
content: 'content',
|
||||
side: 'side',
|
||||
dragThreshold: 'dragThreshold'
|
||||
},
|
||||
properties: [
|
||||
'content',
|
||||
'side',
|
||||
'dragThreshold'
|
||||
],
|
||||
events: ['opening']
|
||||
})
|
||||
@View({
|
||||
|
@ -10,9 +10,9 @@ import {IonicComponent} from 'ionic/config/component'
|
||||
|
||||
@Component({
|
||||
selector: 'ion-checkbox',
|
||||
properties: {
|
||||
checked: 'checked'
|
||||
},
|
||||
properties: [
|
||||
'checked'
|
||||
],
|
||||
hostListeners: {
|
||||
'^click': 'onClick($event)'
|
||||
}
|
||||
|
@ -13,9 +13,9 @@ import {IonicComponent} from '../../config/component';
|
||||
|
||||
@Component({
|
||||
selector: 'ion-nav',
|
||||
properties: {
|
||||
initial: 'initial'
|
||||
}
|
||||
properties: [
|
||||
'initial'
|
||||
]
|
||||
})
|
||||
@View({
|
||||
template: `
|
||||
|
@ -92,9 +92,9 @@ new IonicComponent(RadioGroup, {})
|
||||
hostListeners: {
|
||||
'^click': 'buttonClicked($event)'
|
||||
},
|
||||
properties: {
|
||||
value: 'value'
|
||||
}
|
||||
properties: [
|
||||
'value'
|
||||
]
|
||||
})
|
||||
@View({
|
||||
template: `
|
||||
|
@ -22,9 +22,9 @@ import {Button} from 'ionic/components/button/button'
|
||||
</div>
|
||||
`,
|
||||
directives: [Button, SegmentButton],
|
||||
properties: {
|
||||
value: 'value'
|
||||
},
|
||||
properties: [
|
||||
'value'
|
||||
],
|
||||
hostProperties: {
|
||||
value: 'value'
|
||||
}
|
||||
@ -111,9 +111,9 @@ new IonicComponent(Segment, {
|
||||
hostListeners: {
|
||||
'click': 'buttonClicked($event)'
|
||||
},
|
||||
properties: {
|
||||
value: 'value'
|
||||
}
|
||||
properties: [
|
||||
'value'
|
||||
]
|
||||
})
|
||||
@View({
|
||||
template: '<content></content>'
|
||||
|
@ -23,10 +23,10 @@ class SplitViewportDecorator {
|
||||
|
||||
@Component({
|
||||
selector: 'ion-split-view',
|
||||
properties: {
|
||||
defaultView: 'defaultView',
|
||||
navTitle: 'navTitle'
|
||||
},
|
||||
properties: [
|
||||
'defaultView',
|
||||
'navTitle'
|
||||
],
|
||||
})
|
||||
@View({
|
||||
template: `
|
||||
|
Reference in New Issue
Block a user