随笔分类 - 路由配置 ui-router
摘要:ui-router提供了一个transition转换对象,transition.to()代表已激活的状态,transition.from()代表过去处于激活的状态; 使用transition.params('to')代表已激活状态的路由参数详情; 使用transition.params('from'
阅读全文
摘要:.run(["$transitions",function ($transitions, $state) { $transitions.onSuccess({}, function (transition) { var currentRoute = transition.to().name; if (currentRoute.indexOf("from")...
阅读全文
摘要:window.localStorage.getItem('键'); //getItem获取浏览器localStorage保存的键的值; window.localStorage.setItem('键','值'); //setItem保存键的值到浏览器的localStorage;
阅读全文
摘要:js示例: { name: 'database.list.data.task', url: '/task/{option}/{pageNo}/{pageSize}', params: {option: 'import', pageNo: '1', pageSize: '25'}, ...
阅读全文
摘要:.run(['$rootScope', function ($rootScope) { $rootScope.alert = function (textContent(参数), toastClass, hideDelay) { $mdToast.show( $mdToast.simple() .t
阅读全文
posted @ 2017-04-26 15:08
芒果加冰