Skip to content
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

Getting warnings: "Attributes on xx-xx were data bound prior to Polymer upgrading the element. This may result in incorrect binding types." #118

Open
gjdev opened this issue Apr 24, 2015 · 4 comments

Comments

@gjdev
Copy link

gjdev commented Apr 24, 2015

When using app-router in combination with custom polymer (0.5.5) elements , I get the following warning:

Attributes on hello-world were data bound prior to Polymer upgrading the element. This may result in incorrect binding types.

I get this for example with the following html:

<app-router mode="pushstate">
    <app-route path="/helloworld">
        <template>
            <hello-world />
        </template>
    </app-route>
</app-router>

Where the hello-world element is defined as follows:

<link rel="import" href="polymer/polymer.html"/>

<polymer-element name="hello-world" noscript>
    <template>
        <div>Hello World!</div>
    </template>
</polymer-element>
@Mipme
Copy link

Mipme commented May 1, 2015

Is there a reason why you use the template tag in the app-route? If you simply address the difference between tag name and path, just use the element attribute like this:

<app-router mode="pushstate">
  <app-route path="/helloworld" element="hello-world"></app-route>
</app-route>

@gjdev
Copy link
Author

gjdev commented May 1, 2015

Yes this was just the simplest reproducing example. I like to put more content in the template.

@mpoehler
Copy link

I have the same problem, here the versions i'm working with:

"app-router": "~2.6.1",
"pushstate-anchor": "~0.3.0",
"polymer": "~0.5.6",

The warning only occurs after initialisation and calling the first routing. All further routings are working without warnings.

@zbusia
Copy link

zbusia commented Jun 5, 2015

For me it helped to initialize router manually after 'polymer-ready' like this:

<app-router init="manual">...</app-router>
<script>
    window.addEventListener('polymer-ready', function() {
        document.querySelector('app-router').init();
    });
</script>

See: https://erikringsmuth.github.io/app-router/#/api#init

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants