1
嗨我想从ui.router
覆盖uiSref
。 这是我正在做的现在:角ui路由器覆盖指令
angular.module("dependencies", [
"ui.router",
"ui.bootstrap"
]);
我有一个名为dependencies
,我注入ui.router
等 在这里,我试图重写uiSref
指令中的优先级设置为100父模块:
angular.module('ui.router.state').directive('uiSref', [function(){
return {
restrict: 'A',
priority: 100,
link: function(scope, element, attrs) {
console.log(element);
}
};
}]);
var app = angular.module("app", ["dependencies"]);
但不工作,可以点什么,我缺少的