| | |
| | | .module("xdashangular.index") |
| | | .controller("MainController", MainController); |
| | | |
| | | function MainController($scope, contextPath) { |
| | | function MainController($scope, contextPath, $rootScope) { |
| | | var vm = this; |
| | | console.log(contextPath) |
| | | |
| | | console.log(contextPath); |
| | | |
| | | $rootScope.$on('$stateNotFound', |
| | | function(event, unfoundState, fromState, fromParams){ |
| | | console.log(unfoundState.to); // "lazy.state" |
| | | console.log(unfoundState.toParams); // {a:1, b:2} |
| | | console.log(unfoundState.options); // {inherit:false} + default options |
| | | }); |
| | | } |