mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
Common Ionic Directives
This commit is contained in:
@ -1,11 +1,14 @@
|
||||
import {Component, View, bootstrap} from 'angular2/angular2'
|
||||
import {FormBuilder, Validators, FormDirectives, ControlGroup} from 'angular2/forms';
|
||||
import {Button, Switch, Form, List, Label, Item, Input, Content} from 'ionic/ionic';
|
||||
//import {Button, Switch, Form, List, Label, Item, Input, Content} from 'ionic/ionic';
|
||||
import {IONIC_DIRECTIVES} from 'ionic/ionic'
|
||||
|
||||
console.log([FormDirectives].concat(IONIC_DIRECTIVES));
|
||||
|
||||
@Component({ selector: '[ion-app]' })
|
||||
@View({
|
||||
templateUrl: 'main.html',
|
||||
directives: [FormDirectives, List, Label, Item, Button, Input, Content]
|
||||
directives: [FormDirectives].concat(IONIC_DIRECTIVES)
|
||||
})
|
||||
class IonicApp {
|
||||
constructor() {
|
||||
|
6
ionic/directives.js
Normal file
6
ionic/directives.js
Normal file
@ -0,0 +1,6 @@
|
||||
import {Button, Switch, List, Label, Item, Input, Content} from 'ionic/ionic';
|
||||
var IONIC_DIRECTIVES = [Button, List, Label, Item, Content];
|
||||
|
||||
console.log('DIRECTIVES', IONIC_DIRECTIVES);
|
||||
|
||||
export {IONIC_DIRECTIVES};
|
@ -30,6 +30,7 @@ Object.defineProperties(ViewContainerRef.prototype, {
|
||||
|
||||
|
||||
export * from 'ionic/components'
|
||||
export * from 'ionic/directives'
|
||||
export * from 'ionic/platform/platform'
|
||||
export * from 'ionic/routing/router'
|
||||
|
||||
|
Reference in New Issue
Block a user