Closed markibanez closed 9 years ago
Yeah, this explains it https://erikringsmuth.github.io/app-router/#/databinding/#callbacks. The problem is there's no way to do the data binding early enough so you can use it in the ready()
callback.
Thanks for pointing me in the right direction :)
Hi @erikringsmuth
Here's my app-router markup
So the problem is when I change the route imperatively, like so
When I access the path variable via {{fid}} in the template, the value is retrieved just fine. But when I try and access it in the custom element's ready function, it gives me undefined. Below is my custom element.
I'm hoping there's a way to access the path variables in the custom element's script.
Great project by the way, really easy to use. Thanks in advance.