【发布时间】:2020-06-25 19:47:21
【问题描述】:
登录过程完成后,我正在加载一个页面。基本上登录页面有一个 ng-view,登录成功后我试图加载一个全新的页面来替换内容。
$routeProvider
.when('/', {
templateUrl: 'views/login.html',
controller: 'loginCtrl',
controllerAs: 'login'
})
.when('/admin/customerview', {
templateUrl: 'views/admin/customerview.html',
controller: 'AdminCustomerviewCtrl',
controllerAs: 'admin/customerview'
})
});
<div class="container-fluid" >
<ng-view></ng-view>
</div>
【问题讨论】:
标签: angularjs angularjs-routing