<ul class="nav navbar-nav">
<li><a href="#Resource">资源列表</a></li>
<li><a href="/Home/Feature/#/overview">碟包推荐</a></li>
<li class="dropdown" ng-show="user">
<a href="#" target="_self" class="dropdown-toggle" data-toggle="dropdown">系统管理 <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#Role">角色管理</a></li>
</ul>
</li>
</ul>
var app = angular.module('app', ['ngRoute', 'ngSanitize', 'controllers', 'services'])
.config(['$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider) {
$routeProvider
.when('/', {
templateUrl: '/Features/Home/home.html',
controller: 'homeCtrl',
})
.when('/Register', {
templateUrl: '/Features/Account/register.html',
controller: 'registerCtrl',
})
.when('/Login/:returnUrl?', {
templateUrl: '/Features/Account/login.html',
controller: 'loginCtrl',
})
.when('/ChangePassword', {
templateUrl: '/Features/Account/changePassword.html',
controller: 'changePasswordCtrl',
})
.when('/Role', {
templateUrl: '/Features/Administration/role.html',
controller: 'roleCtrl',
})
.otherwise({
redirectTo: '/',
});
}]);