-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't work inside another element #19
Comments
I tried this and thought it was a bug at first but then I realized I forgot to import polymer. Doh! It worked once I added all the imports. I'd also suggest declaring the
<script src="/bower_components/platform/platform.js"></script>
<link rel="import" href="my-application.html"/>
...
<my-application></my-application>
<link rel="import" href="/bower_components/polymer/polymer.html">
<link rel="import" href="/bower_components/app-router/app-router.html">
<polymer-element name="my-application">
<template>
<app-router>
<app-route template path="*">
<template>
<script>alert('Welcome');</script>
</template>
</app-route>
<app-router>
<template>
<script>
...
</script>
<polymer-element> |
I've tried what you told me, but still doesn't work.
|
Hm... Do you have a link to code I can look at or run? |
The imports look correct. I'll have to look at this again later. |
I'm baffled on this one. I see the problem in your code but I can't tell what is causing it. It looks like the inline template is empty when everything gets loaded. Something really weird is happening here. Phantom templates! |
+1 |
Thanks for the StackOverflow question! That's definitely the problem we're seeing here. I'm really hoping there's a good answer because I'm pretty sure this solution is Polymer, not native DOM or the polyfill. template.setAttribute('bind', '');
template.model = null; |
I haven't tried that answer yet, but in the meantime, I found this: And I tried using that method, and it returned the template contents! I bet you can do the same. Sorry I don't have time for a PR... |
Cool. Looks like Now I just need to find out if that's polyfill or Polymer... |
It turns out the template spec is weird here and I can't fix this natively. I'm "fixing" it by using |
I have my index.html, but i've put an element that wraps my application.
Then, inside my element, I've put app-router, so, it haven't been worked.
<link rel="import" href="elements.html"/>
...
<my-application></my-application>
The text was updated successfully, but these errors were encountered: