"deferIntercept"
I feel that this thing is helpful to me, but the documentation is not very thorough.
Do you have a simpler introduction or demo? Thank you
The following is the normal writing method. . .
App.config(function ($stateProvider, $urlRouterProvider) { // $urlRouterProvider.deferIntercept(); $urlRouterProvider.otherwise('/view/index'); $stateProvider .state('Home', { url: '/view/index', templateUrl: 'view/index.html' }) .state('Error', { url: '/view/error', templateUrl: 'view/error.html' }) });
If you add $urlRouterProvider.deferIntercept(), both the default route and the redirected route will be disabled. This is why the official website says to prevent URL jumps~
The following is the normal writing method. . .
If you add $urlRouterProvider.deferIntercept(), both the default route and the redirected route will be disabled. This is why the official website says to prevent URL jumps~