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