Loading Urls from core-menu into core-scaffold content area

184 views
Skip to first unread message

Vikas Singhal

unread,
Jul 3, 2014, 2:53:50 AM7/3/14
to polym...@googlegroups.com
Hi, 

I am trying to use core-scaffold component. I have used core-menu component to create menus, now I want to load url specified by 'href' property in core-item to load into content area of core-scaffold. Is there a component already or do we need to create a custom one for this?

I hope my question was clear, feel free to ask if you need more info.

Vikas

Rob Dodson

unread,
Jul 4, 2014, 12:22:05 PM7/4/14
to Vikas Singhal, polymer-dev
Eric Bidelman has created an example that does pretty much exactly what you describe (you can see it running here). It uses core-pages to respond to a URL change by displaying a different template. The URL change is coming from the flatiron-director element. The pages are already loaded so it's quite snappy, the one thing it doesn't do is load additional pages using ajax (which you may or may not need). We're planning to clean this example up and present it as a more thorough explanation in the future, but if you want to get up and running now, you can just take Eric's code and modify it.


Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/d05bbbb8-515a-4217-9dcd-11d1dc042889%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages