Polymer 1.0 - How to use 'page' to route app and change URL -
working polymer 1.0 starter kit, i'd set new route, need fire function in app.js file rather through routing.html
app._loadproject = function(e) { // stuff here // after finished, route our 'project' section in app app.route = 'project'; }; this works part. application routed 'project' <section>. however, url not update reflect this, in cases user reloads page, find on different 'section' 1 on - not friendliest scenario.
is there more proper way route 'page' doesn't break browser navigation?
do thing in app.js:
app._loadproject = function(e) { // stuff here // after finished, route our 'project' section in app page.show('/project'); // same page('/project') }; add rule in routing.html:
page('/project', project); ... function project() { app.route = 'project'; }
Comments
Post a Comment