Comments on: ui-router: Deprecated events and hooks https://stepansuvorov.com/blog/2016/07/ui-router-deprecated-events-and-hooks/ Release 2.0 Sat, 10 Sep 2016 13:33:00 +0000 hourly 1 https://wordpress.org/?v=6.3.1 By: Stepan Suvorov https://stepansuvorov.com/blog/2016/07/ui-router-deprecated-events-and-hooks/#comment-63317 Sat, 10 Sep 2016 13:33:00 +0000 http://stepansuvorov.com/blog/?p=3093#comment-63317 In reply to Ivan Bisultanov.

but on plunker it works, no?

]]>
By: Ivan Bisultanov https://stepansuvorov.com/blog/2016/07/ui-router-deprecated-events-and-hooks/#comment-63316 Sun, 04 Sep 2016 18:18:00 +0000 http://stepansuvorov.com/blog/?p=3093#comment-63316 $transitions.onEnter({ to: ‘stateName’ }, function($state$, $transition$) {
return $q.reject();
});

this code lead to error for me, I think it would be better use `return false;`

]]>
By: Stepan Suvorov https://stepansuvorov.com/blog/2016/07/ui-router-deprecated-events-and-hooks/#comment-63303 Fri, 29 Jul 2016 07:25:00 +0000 http://stepansuvorov.com/blog/?p=3093#comment-63303 In reply to Chris Thielen.

thank you for the addition, Chris

]]>
By: Chris Thielen https://stepansuvorov.com/blog/2016/07/ui-router-deprecated-events-and-hooks/#comment-63302 Thu, 28 Jul 2016 23:08:00 +0000 http://stepansuvorov.com/blog/?p=3093#comment-63302 Note: UI-Router provides a polyfill that re-enables the deprecated state events. See this page in the API docs: https://ui-router.github.io/docs/latest/modules/ng1_state_events.html

]]>