我正在开发一个nodejs应用程序,其中主要的js文件控制状态是
angular.module('dreamflow', ['ui.router'])
.config(['$urlRouterProvider', '$stateProvider',
function($urlRouterProvider, $stateProvider) {
$urlRouterProvider.otherwise('/');
$stateProvider
.state('dashboard', {
url: '',
name: 'dashboard',
templateUrl: '/browser/views/dashboard.html'
})
.state('dashboard.processCreation', {
url: '/processCreation',
name: 'processCreation',
parent: 'dashboard',
templateUrl: '/browser/views/processCreation.html'
})
.state('dashboard.formCreation', {
url: '/formCreation',
name: 'formCreation',
parent: 'dashboard', //mandatory
templateUrl: '/browser/views/formCreation.html'
});
}
]);
我正在页面 processCreation 上工作。我正在创建一个流程,然后我必须重定向到 formCreation页面,因为我正在使用
$location.url = ('/formCreation');
但它无法重定向吗?