mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-19 13:52:23 +01:00
22 lines
352 B
JavaScript
22 lines
352 B
JavaScript
(function () {
|
|
'use strict';
|
|
|
|
angular.module('core')
|
|
.directive('mtTarget', mtTarget);
|
|
|
|
function mtTarget() {
|
|
var directive = {
|
|
restrict: 'A',
|
|
link: link
|
|
};
|
|
|
|
return directive;
|
|
|
|
function link(scope, element, attrs) {
|
|
if (attrs.mtTarget) {
|
|
attrs.$set('target', attrs.mtTarget);
|
|
}
|
|
}
|
|
}
|
|
}());
|