Start of nav controller with angular

This commit is contained in:
Max Lynch
2013-09-18 12:52:16 -05:00
parent 771cdc3964
commit 77bcb4af58
4 changed files with 131 additions and 4 deletions

View File

@ -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;