mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
wip
This commit is contained in:
@ -1,8 +1,6 @@
|
||||
import {Component, View, NgElement, PropertySetter} from 'angular2/angular2'
|
||||
import {ComponentConfig} from 'ionic/config/component-config'
|
||||
import {Component, View as NgView, NgElement, PropertySetter} from 'angular2/angular2'
|
||||
import {IonicComponent} from 'ionic/config/component'
|
||||
|
||||
export let CheckboxConfig = new ComponentConfig('checkbox')
|
||||
|
||||
@Component({
|
||||
selector: 'ion-checkbox',
|
||||
@ -11,10 +9,9 @@ export let CheckboxConfig = new ComponentConfig('checkbox')
|
||||
},
|
||||
events: {
|
||||
'^click': 'onClick()'
|
||||
},
|
||||
injectables: [CheckboxConfig]
|
||||
}
|
||||
})
|
||||
@View({
|
||||
@NgView({
|
||||
template: `
|
||||
<div class="item-media media-checkbox">
|
||||
<icon class="checkbox-off"></icon>
|
||||
@ -31,7 +28,6 @@ export let CheckboxConfig = new ComponentConfig('checkbox')
|
||||
})
|
||||
export class Checkbox {
|
||||
constructor(
|
||||
configFactory: CheckboxConfig,
|
||||
@NgElement() ngElement: NgElement,
|
||||
@PropertySetter('attr.role') setAriaRole: Function,
|
||||
@PropertySetter('attr.aria-checked') setAriaChecked: Function,
|
||||
|
@ -1,9 +1,12 @@
|
||||
import {Component, View, bootstrap} from 'angular2/angular2';
|
||||
import {View as NgView} from 'ionic/components/view/view';
|
||||
import {Content, Icon, Checkbox, List} from 'ionic/components';
|
||||
import {Component, View as NgView, bootstrap} from 'angular2/angular2';
|
||||
import {View} from 'ionic/components/view/view';
|
||||
import {Content} from 'ionic/components/content/content';
|
||||
import {Icon} from 'ionic/components/icon/icon';
|
||||
import {Checkbox} from 'ionic/components/checkbox/checkbox';
|
||||
import {List} from 'ionic/components/list/list';
|
||||
|
||||
@Component({ selector: '[ion-app]' })
|
||||
@View({
|
||||
@NgView({
|
||||
templateUrl: 'main.html',
|
||||
directives: [View, Content, Icon, Checkbox, List]
|
||||
})
|
||||
|
Reference in New Issue
Block a user