mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
@ -1,6 +1,15 @@
|
|||||||
|
import {Component} from 'angular2/angular2';
|
||||||
import {App, NavController} from 'ionic/ionic';
|
import {App, NavController} from 'ionic/ionic';
|
||||||
import {Page, Config, IonicApp} from 'ionic/ionic';
|
import {Page, Config, IonicApp} from 'ionic/ionic';
|
||||||
import {NavParams, NavController, ViewController} from 'ionic/ionic';
|
import {NavParams, NavController, ViewController, IONIC_DIRECTIVES} from 'ionic/ionic';
|
||||||
|
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'my-cmp',
|
||||||
|
template: `<p>My Custom Component Test <icon star></icon></p>`,
|
||||||
|
directives: [IONIC_DIRECTIVES]
|
||||||
|
})
|
||||||
|
class MyCmpTest{}
|
||||||
|
|
||||||
|
|
||||||
@Page({
|
@Page({
|
||||||
@ -32,7 +41,9 @@ import {NavParams, NavController, ViewController} from 'ionic/ionic';
|
|||||||
|
|
||||||
<button *ng-for="#i of pages" ion-item (click)="pushPrimaryHeaderPage()">Page {{i}}</button>
|
<button *ng-for="#i of pages" ion-item (click)="pushPrimaryHeaderPage()">Page {{i}}</button>
|
||||||
</ion-list>
|
</ion-list>
|
||||||
</ion-content>`
|
<my-cmp></my-cmp>
|
||||||
|
</ion-content>`,
|
||||||
|
directives: [MyCmpTest]
|
||||||
})
|
})
|
||||||
class FirstPage {
|
class FirstPage {
|
||||||
constructor(
|
constructor(
|
||||||
|
@ -3,6 +3,7 @@ export * from './config/bootstrap'
|
|||||||
export * from './config/config'
|
export * from './config/config'
|
||||||
export * from './config/modes'
|
export * from './config/modes'
|
||||||
export * from './config/decorators'
|
export * from './config/decorators'
|
||||||
|
export * from './config/directives'
|
||||||
|
|
||||||
export * from './components'
|
export * from './components'
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user