ui-router-extras icon indicating copy to clipboard operation
ui-router-extras copied to clipboard

Dynamic and static views

Open raphaelluchini opened this issue 10 years ago • 3 comments

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 avatar Jan 20 '15 13:01 raphaelluchini

@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.

christopherthielen avatar Jan 22 '15 17:01 christopherthielen

@raphaelluchini ping

christopherthielen avatar Jan 27 '15 13:01 christopherthielen

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.

  1. 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!

raphaelluchini avatar Apr 06 '15 21:04 raphaelluchini