PolymerElements / iron-component-page

A reusable landing page for elements
36 stars 32 forks source link

proposal: Allow to reload at the "demo" tab. #123

Closed alvaropinot closed 7 years ago

alvaropinot commented 7 years ago

proposal: Allow to reload at the "demo" tab by adding routing

Developing based on the demo page could be easier if iron-component-page allows to reload at the current tab (demo/docs). Right now if you reload the page when viewing the "demo" tab, you'll get redirected to the "docs" tab, and the user will need to click the "demo" tab again.

I've created a quick PoC using app-location and app-route which allows to route the tabs to something like #/docs and #/demo:cool-foo-demopage.html so you can reload the page avoiding the click on the "demo" tab.

here a gif reloading and navigating :)

iron-component-page-with-routes

aomarks commented 7 years ago

The new 3.0 version of iron-component-page that was just published has stable URLs for all locations in the documentation, including demos.

alvaropinot commented 7 years ago

👌

Would you like to update the old one also?

aomarks commented 7 years ago

@alvaropinot Not planning on adding anything new to the 2.x branch. 3.x supports both Polymer 1 and 2 style elements and hopefully isn't too difficult to upgrade to.