使用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)
.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)
相关文章推荐
- easyui onSortColumn:alertColumn
- leetcode——96——Unique Binary Search Trees
- 百度编辑器UEditor常用设置函数大全
- ios UITableViewCell 左滑删除时,改变删除按钮背景颜色
- UIView常用属性和函数
- easyui-window title的赋值和获取
- FineUI EF6 数据库分页查询 页面说明
- ios UITextView设置行距
- build.xml文件的粗浅理解
- Openwrt编译 `XZ5.2`not found (required by xzcat) 解决方法
- AsyncQueryHandler的使用
- iOS 修改UIImage的尺寸
- iOS 继承 UIWindow 的密码保护功能
- iOS 将UIImage裁剪成圆形
- UITextField中放置UIImage 和placeholder 字体、颜色、大小、位置
- Easyui Treegrid改变默认图标的方法
- iOS开发UI篇—无限轮播(循环利用)
- ESXi安装异常:VMware ESXi requires the Excute Disable/No Exceute CPU feature to be enabled
- Could not allocate CursorWindow size due to error -12 错误解决方法
- ShortGuid--简单便捷高效不区分大小写的短唯一ID