您的位置:首页 > 产品设计 > UI/UE

使用UI-Router设置页面标题

2016-04-29 13:46 549 查看
========================1=============================

.run(['$rootScope', '$state', '$stateParams',

function($rootScope, $state, $stateParams) {

$rootScope.$state = $state;

$rootScope.$stateParams = $stateParams;

}

])

===================2==============================

.state("user_overview", {

url: "/user_overview",

title: 'Setting Users',

views: {

'settingdetailView': {

controller: "user_overviewCtr",

templateUrl: 'setting/users/users_overview.html'

}

}

}).

===================3==============================

<title >{{ $state.current.title }}</title>

===================4==============================

console.log($state)

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: