I was working with the polymer SPA example from the dartlang.org website, decided to teach it some new tricks page The piece is loading, and now I've been left with submenu handling. So far the templates of the code do work as expected using conditional templates, but I'm stuck in routing.
So far, I have modified the page model like this:
class page {last string name; Last string path; Final string url; Last string icon; The final ball is the default; The last bull is submenu; Last list & lt; Page & gt; Subpage; Constance Page (this.name, this.path, it.url, this.con, {this.isDefault: false, this.isSubmenu: false, this.sub Page: zero}); String toasting () = & gt; '$ Name'; }
And I'm adding pages to the router like this:
domReady () {for page (page in page) {if (! Page .isSubmenu) {router.root.addRoute (Name: Page: Name, Path: page. Page, Default routing: page Default, enter: enterRoute); } For other {page (page sub page page). {Router.root.addRoute (name: subPage.name, path: subPage.path, defaultRoute: subPage.is default, enter: enterRoute); }}} Router.listen (); }
And I'm getting
Exception: Unwanted error: Bad status: No element in the dirutium consoleis not an exception. What am I doing wrong?
No comments:
Post a Comment