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

Question: in ui-sref It is possible to do $stickyState.reset() #347

Closed nahuelramos closed 7 years ago

nahuelramos commented 7 years ago

Hi i have a menu with different sticky states, I need that when click run $stickyState.reset(). github

christopherthielen commented 7 years ago

<a ui-sref="home" ng-click="reset('home')">Home</a>

Then implement reset in a controller.

You could also write a custom directive which does the same thing when clicked.