Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant