awx/awx/ui/static/js/shared/icon/include-svg.directive.js
2015-05-28 09:03:56 -04:00

13 lines
300 B
JavaScript

export default ['$http', function($http) {
return {
restrict: 'E',
link: function(scope, element, attrs) {
var path = attrs.href;
$http.get(path).then(function(response) {
element.append(response.data);
});
}
};
}]