mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 22:17:40 +08:00
Testing routables
This commit is contained in:
@ -3,7 +3,7 @@ import {Ancestor} from 'angular2/src/core/annotations_impl/visibility';
|
|||||||
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
|
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
|
||||||
import {View} from 'angular2/src/core/annotations_impl/view';
|
import {View} from 'angular2/src/core/annotations_impl/view';
|
||||||
|
|
||||||
import {NavbarTemplate, Navbar, NavController, Button, Content} from 'ionic/ionic';
|
import {Routable, NavbarTemplate, Navbar, NavController, Button, Content} from 'ionic/ionic';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ion-view'
|
selector: 'ion-view'
|
||||||
@ -43,3 +43,8 @@ export class ButtonPage {
|
|||||||
window.nav = nav;
|
window.nav = nav;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
new Routable(ButtonPage, {
|
||||||
|
url: '/components/button',
|
||||||
|
tag: 'button'
|
||||||
|
})
|
||||||
|
Reference in New Issue
Block a user