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

seems like not working with data-property of app-route #60

Open
1 of 8 tasks
tschiela opened this issue Nov 23, 2016 · 0 comments
Open
1 of 8 tasks

seems like not working with data-property of app-route #60

tschiela opened this issue Nov 23, 2016 · 0 comments

Comments

@tschiela
Copy link

tschiela commented Nov 23, 2016

Description

We used iron-location to get query parameters from url. If we also change the data property of app-route, the url will not be changed in address bar. For example:

<iron-location path="{{path}}" query="{{query}}" use-hash-as-path></iron-location>
<iron-query-params
  params-string="{{query}}"
  params-object="{{queryParams}}">
</iron-query-params>
<app-route-converter
  path="{{path}}"
  query-params="{{queryParams}}"
  route="{{route}}">
</app-route-converter>

<app-route route="{{route}}"
           pattern="/:view"
           data="{{routeData}}"></app-route>

...
this.set('routeData.view', 'GNAAA');

Expected outcome

http://someurl/index.html#/GNAAA

Actual outcome

http://someurl/index.html#/

If we remove the iron-location from our code, all works as expected.

Browsers Affected

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10
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

1 participant