UI-router $stateChangeStart not working at all

后端 未结 2 539
旧巷少年郎
旧巷少年郎 2021-01-23 02:41

this is my app.js

var $stateProviderRef = null;
var $urlRouterProviderRef = null;

var acadb = angular.module(\'acadb\', [
\'ngRoute\',
\'ui.router\',
\'ngAnimat         


        
相关标签:
2条回答
  • 2021-01-23 03:27

    To enable these state events, include the stateEvents.js file in your project, e.g.,

    <script src="stateEvents.js"></script>
    

    and also make sure you depend on the ui.router.state.events angular module, e.g.,

    angular.module("myApplication", ['ui.router', 'ui.router.state.events']
    

    https://ui-router.github.io/ng1/docs/latest/modules/ng1_state_events.html

    0 讨论(0)
  • 2021-01-23 03:27

    It seems like ui.router and ngRoute might not work together. Get rid of ngRoute package and all dependend actions and try again.

    0 讨论(0)
提交回复
热议问题