javascript - Polymer:Route sections don't display -


i'm using pagejs along iron-pages display different pages. routes working, because console logs fine.

but i'm using code display content:

<a data-route="test" href="#!test">test</a> <iron-pages attr-for-selected="data-route" selected="{{route}}"> <section data-route="test">test</section> </iron-pages> 

note: if selected="test" displayed.

if using polymer starter kit, need put route in routing.html file. file tells pagejs set route variable "test" when going url "#!test". if wanted have on-click handler sets route variable test when click <a> tag, work too.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -