Answer the question
In order to leave comments, you need to log in
Is it possible to do such a cookie check in angular?
In general, you need to constantly check the relevance of cookies and if they are no longer relevant, redirect to a specific page. How can it be implemented less kastylno?
It didn’t work out normally to go on a spree, because. I don't usually work with angular and js.
Answer the question
In order to leave comments, you need to log in
I would check when changing the state (page)
works with ui-router / without it, the stateChangeSuccess event is called differently
.run(function ($rootScope, cookieFactory) {
'ngInject';
$rootScope.$on('$stateChangeSuccess', event =>{
...
});
})
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question