Currently, I'm using:
- "angular-ui-router": "^0.4.2"
- "angular": "^1.6.3"
- "webpack": "^2.4.1"
I am aware of my current implementation might be deprecated, just looking for the implementation(an example or documentation) of the new method. Any help is greatly appreciated, thanks in advance!
Current implementation:
'use strict';
module.exports = angular
.module('common', [
'ui.router',
'angular-loading-bar',
require('./header').name,
require('./sideBar').name,
require('./footer').name
])
.run(function($transitions, cfpLoadingBar) {
$transitions.onStart({}, cfpLoadingBar.start);
$transitions.onSuccess({}, cfpLoadingBar.complete);
});
Current error:
Uncaught Error: [$injector:unpr] Unknown provider: $transitionsProvider <- $transitions
$transitions for new versions (>= 1.0.0) (PLUNKER DEMO)
Available events ordered by invocation:
Too see each event method in detail: $transition service docs
Also some examples: Migrations examples from 0.4.2 to 1.0.0 in official docs
$state changes events for old versions (<= 0.4.2) (PLUNKER DEMO):
Check angular-ui-router docs for more $state change events