christopherthielen / ui-router-extras

THIS PROJECT IS NO LONGER MAINTAINED -- Extras for UI-Router for AngularJS. Sticky States (a.k.a. parallel states), Deep State Redirect (for tab-like navigation), Future States (async state definition)
http://christopherthielen.github.io/ui-router-extras/
MIT License
917 stars 211 forks source link

Controller is initialized everytime on changing tab if url contains params #288

Closed ahelmel closed 8 years ago

ahelmel commented 8 years ago

The tab controller is initialized every time i navigate between the tabs (the tab states are defined as sticky states). It happens only if the url of the parent state contains a parameter. I created a fiddle to demonstrate this issue: https://jsfiddle.net/ahelmel/dw1kqdgt/7/ to see this behavior please open the browsers console and change between the tabs, i am logging the controller initialization in the console. If you remove the :id param from the url of the "root.home" state everything works fine.