mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
Start of nav controller with angular
This commit is contained in:
@ -35,13 +35,13 @@
|
||||
// Actually switch the active controllers
|
||||
|
||||
// Remove the old one
|
||||
last && last.detach();
|
||||
//last && last.detach();
|
||||
|
||||
// Grab the top controller on the stack
|
||||
var next = this.controllers[this.controllers.length - 1];
|
||||
|
||||
// TODO: No DOM stuff here
|
||||
this.content.el.appendChild(next.el);
|
||||
//this.content.el.appendChild(next.el);
|
||||
|
||||
// Switch to it (TODO: Animate or such things here)
|
||||
this.topController = next;
|
||||
@ -63,12 +63,12 @@
|
||||
last = this.controllers.pop();
|
||||
|
||||
// Remove the old one
|
||||
last && last.detach();
|
||||
//last && last.detach();
|
||||
|
||||
next = this.controllers[this.controllers.length - 1];
|
||||
|
||||
// TODO: No DOM stuff here
|
||||
this.content.el.appendChild(next.el);
|
||||
//this.content.el.appendChild(next.el);
|
||||
|
||||
// Switch to it (TODO: Animate or such things here)
|
||||
this.topController = next;
|
||||
|
||||
Reference in New Issue
Block a user