ui-router-extras
ui-router-extras copied to clipboard
Dynamic and static views
Hello @christopherthielen, I think I've found another bug :/
I need to use /:slug and static pages, like /login (static), /someSlug (dynamic), but at the first time I type /login, the router resolves right to login page, but if I'm at another page and then I click a link to /login link, the router resolves /login as a slug.
https://github.com/raphaelluchini/ui-router-extras-otherwise-bug
@raphaelluchini can you provide step by step instructions to trigger both scenarios? I downloaded your git repo, but I'm not understanding which behaviors are correct and which are incorrect.
@raphaelluchini ping
Hello @christopherthielen, sorry for long delay, I was launching a big new project (using ui router and future states) :)
Actually this post was not a bug(I've fixed and updated the example), but after some time using the ui-router and router-extras I got wired behaviours using ui-sref.
You can test cloning the repo, npm install, gulp serve.
- At the first time I load the route, the link href attribute is null, and just after I click and load the state, the href attribute is updated. Do you know to to fix that?
2)This one I think is ui-router issue, If I have an #anchor, and I hit the ui-sref, the router diapatch the otherwise and I get digest iterations limit error.
Thanks!