Closed ghost closed 10 years ago
That'd be the platform polyfill.
http://www.polymer-project.org/docs/start/platform.html https://github.com/Polymer/platform
This is polyfill used by both Polymer and X-Tag to get Custom Elements, HTML Imports, <template>
, and Shadow DOM working in browsers that don't support Web Components natively. Now that Chrome officially supports Web Components I'm hoping they'll fix Polymer to not have a hard dependency on this. For now you'll need the polyfill though.
This is how I included it in gh-pages. https://github.com/erikringsmuth/app-router/blob/gh-pages/index.html#L8
i tried that first and it did not work for sub pages.
I wonder if it has something to do with relative paths to platform.js. You could try it like this everywhere.
<script src="/bower_components/platform/platform.js"></script>
that was the first thing i tried
does not work for some reason.
still trying to work out what is happening
Contact details: +49 15 23 18 94 553 (germany) skype: gedw99
On 1 August 2014 16:20, Erik Ringsmuth notifications@github.com wrote:
I wonder if it has something to do with relative paths to platform.js. You could try it like this everywhere.
— Reply to this email directly or view it on GitHub https://github.com/erikringsmuth/app-router/issues/11#issuecomment-50889524 .
i get
Uncaught SyntaxError: Failed to execute 'registerElement' on 'Document': Registration failed for type 'subpage'. The type name is invalid.
Contact details: +49 15 23 18 94 553 (germany) skype: gedw99
On 1 August 2014 16:27, Ged Wed gedw99@gmail.com wrote:
that was the first thing i tried
does not work for some reason.
still trying to work out what is happening
Contact details: +49 15 23 18 94 553 (germany) skype: gedw99
On 1 August 2014 16:20, Erik Ringsmuth notifications@github.com wrote:
I wonder if it has something to do with relative paths to platform.js. You could try it like this everywhere.
— Reply to this email directly or view it on GitHub https://github.com/erikringsmuth/app-router/issues/11#issuecomment-50889524 .
registerElement
requires a dash in the name. Switching subpage
to sub-page
might help.
I think this issue is resolved. I added a full page load example here. https://github.com/erikringsmuth/app-router-examples
Everything loads in the network console with nothing missed, but its gets a " Platform is not defined " from polymer.js
???