iron-location
iron-location copied to clipboard
could not change property and url
Description
Expected outcome
Actual outcome
Live Demo
Steps to reproduce
Browsers Affected
- [x] Chrome
- [ ] Firefox
- [ ] Safari 9
- [ ] Safari 8
- [ ] Safari 7
- [ ] Edge
- [ ] IE 11
- [ ] IE 10
<dom-module id="app-shell">
<style>
</style>
<template>
<iron-location path="{{path}}" query="{{query}}" hash="{{hash}}"> </iron-location>
<some query="{{query}}" > <some>
</template>
</dom-module>
<script>
Polymer({
is: 'app-shell',
properties: {
query: {
type: String,
notify: true,
},
path: String,
},
ready: function () {
this.query="fsdf=fasd";
this.async(function () {
this.set('query', "?");
this.query = this.query + "aaa";
this.set('path', this.path + '?' + 'aa');
});
},
});
</script>
i found that is the elements problems. its status property all are in attached() . when its parent is ready it still not this._initialized = true and this._dontUpdateUrl = false;
and also it can not be changed inside the<some>