Polymer single page application with lightbox -


regarding this question have changed polymer spa little load content dynamically.
next thing add lightbox gallery.
have found lightweigt version here
standalone works in dynamic content page not able work.
created git repo here

thanks lot.
viktoria

ps: next things contact form nice effect wow.js, language selector , icon fonts

if planing put static content custom element on page not see need in using array of content. change final.html

     <div layout horizontal center-center fit>       <core-animated-pages id="pages" selected="{{route}}" valueattr="hash"                            transitions="slide-from-right">           <section hash="about" layout vertical center-center>             <about-us></about-us>           </section>       </core-animated-pages>     </div> 

then have 1 page can access http://address.com/#about

to add page need add <section> with hash attribute of ever want route be.

i going assume tutorial working through uses auto-binding template , in javascript has waited template bound. or working inside custom element.

to set default route change route line in javascript like

this.route = this.route || 'single'; 

change 'single' ever want default page be.

hope helps.

note removed on-tap function see being useful demo.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -