UI-router $stateChangeStart not working at all

后端 未结 2 559
旧巷少年郎
旧巷少年郎 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.,

    
    

    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

提交回复
热议问题