angularjs - Logout state that doesn't change view -


currently have problem states in angularjs 1.x.

we've in our application "logout" state looks this:

.state('logout', {         onenter:function($window) {             cookies.remove('cookietest');             $window.open('http://url/', '_self');         }     }) 

now redirect works , cookie getting removed. how ever, i'm switching states, ng-view changing blank page. in cases we've got ng-leave defined in our css animation appear.

is there way how can functionallity described above, within .state() not change ng-view?

as can see tried firstly "onenter" maybe redirect before switching states. tried play information posted accepted answer in topic: ui-router change state without changing url. makes sure url doesn't change, don't want ng-view change.

who can me out?


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -