These are chat archives for AngularClass/NG6-starter

14th
Aug 2016
proJS
@dssorokin
Aug 14 2016 15:17

Hi guys. My problem is that ui-router events $stateChangeStart and $stateChangeSuccess doesn't work in this template. I put this code

$rootScope.$on('$stateChangeStart', function(){
console.log('start');
})
$rootScope.$on('$stateChangeSuccess', function(){
console.log('success');
})
at run function in app.js file. When i change the state nothing happend.

Sergey Protko
@fesor
Aug 14 2016 15:19
@dssorokin please read documentation for uiRouter 1.0beta
@dssorokin i didn't tried uiRouter 1.0 yet so can't help you with that. I only know that this is not starter's problem. You could also downgrade to latest stable uiRouter release.
proJS
@dssorokin
Aug 14 2016 17:02
@fesor thank you. It turned out that ui-routes events has been deprecated in new version.