mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
nav and modal docs wip
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
import {Directive} from 'angular2/angular2';
|
||||
import {NavController} from './nav-controller';
|
||||
|
||||
|
||||
/**
|
||||
* TODO
|
||||
*/
|
||||
@Directive({
|
||||
selector: '[nav-push]',
|
||||
properties: [
|
||||
@ -14,15 +16,22 @@ import {NavController} from './nav-controller';
|
||||
}
|
||||
})
|
||||
export class NavPush {
|
||||
/**
|
||||
* TODO
|
||||
* @param {NavController} nav TODO
|
||||
*/
|
||||
constructor(nav: NavController) {
|
||||
this.nav = nav;
|
||||
}
|
||||
|
||||
onClick(event) {
|
||||
this.nav.push(this.navPush, this.pushData);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* TODO
|
||||
*/
|
||||
@Directive({
|
||||
selector: '[nav-pop]',
|
||||
host: {
|
||||
@ -31,6 +40,10 @@ export class NavPush {
|
||||
}
|
||||
})
|
||||
export class NavPop {
|
||||
/**
|
||||
* TODO
|
||||
* @param {NavController} nav TODO
|
||||
*/
|
||||
constructor(nav: NavController) {
|
||||
this.nav = nav;
|
||||
}
|
||||
|
Reference in New Issue
Block a user