Open oesleik opened 7 years ago
I'm not able to reproduce properly the binding example. When I try to use some custom name other than id, it doesn't set the attributes.
id
<app-router mode="hash"> <app-route path="/binding/:id" element="page-test"></app-route> <app-route path="/notbinding/:orderId" element="page-test"></app-route> </app-router>
window.onload = function() { document.registerElement('page-test', { prototype: Object.create(HTMLElement.prototype, { createdCallback: { value: function() { console.log(this, this.attributes); } } }) }); document.querySelector("app-router").init(); };
When I open #/binding/25 it set the id attribute, but when I open #/notworking/25, it doesn't set the orderId attribute.
#/binding/25
#/notworking/25
orderId
Why using notbinding in markup and notworking url?
notbinding
notworking
A typo
I'm not able to reproduce properly the binding example. When I try to use some custom name other than
id
, it doesn't set the attributes.When I open
#/binding/25
it set theid
attribute, but when I open#/notworking/25
, it doesn't set theorderId
attribute.