Skip to content
This repository has been archived by the owner on Sep 20, 2020. It is now read-only.

Dynamic and static views #140

Open
raphaelluchini opened this issue Jan 20, 2015 · 3 comments
Open

Dynamic and static views #140

raphaelluchini opened this issue Jan 20, 2015 · 3 comments

Comments

@raphaelluchini
Copy link

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

@christopherthielen
Copy link
Owner

@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
Copy link
Owner

@raphaelluchini ping

@raphaelluchini
Copy link
Author

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants