mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
button refactor
This commit is contained in:
@@ -7,7 +7,6 @@ import {View} from 'angular2/src/core/annotations_impl/view';
|
||||
import {ControlGroup, ControlDirective} from 'angular2/forms'
|
||||
import {dom} from 'ionic/util';
|
||||
import {IonicComponent} from 'ionic/config/component'
|
||||
import {Button} from 'ionic/components/button/button'
|
||||
|
||||
|
||||
@IonicComponent(Segment)
|
||||
@@ -16,7 +15,7 @@ import {Button} from 'ionic/components/button/button'
|
||||
<content></content>
|
||||
</div>
|
||||
`,
|
||||
directives: [Button, SegmentButton]
|
||||
directives: [SegmentButton]
|
||||
})
|
||||
export class Segment {
|
||||
|
||||
|
||||
@@ -2,14 +2,14 @@ import {NgSwitch, NgSwitchWhen} from 'angular2/angular2'
|
||||
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
|
||||
import {View} from 'angular2/src/core/annotations_impl/view';
|
||||
|
||||
import {Segment, SegmentButton, Content, Button} from 'ionic/ionic';
|
||||
import {Segment, SegmentButton, Content} from 'ionic/ionic';
|
||||
import {FormBuilder, Validators, formDirectives, ControlGroup} from 'angular2/forms';
|
||||
|
||||
|
||||
@Component({ selector: 'ion-view' })
|
||||
@View({
|
||||
templateUrl: 'main.html',
|
||||
directives: [formDirectives].concat([Segment, SegmentButton, Content, Button, NgSwitch, NgSwitchWhen])
|
||||
directives: [formDirectives].concat([Segment, SegmentButton, Content, NgSwitch, NgSwitchWhen])
|
||||
})
|
||||
export default class IonicApp {
|
||||
constructor() {
|
||||
|
||||
Reference in New Issue
Block a user