18 lines
456 B
JavaScript
18 lines
456 B
JavaScript
(function () {
|
|
'use strict';
|
|
|
|
angular.module("ariaNg").directive('ngPlaceholder', function () {
|
|
return {
|
|
restrict: 'A',
|
|
scope: {
|
|
placeholder: '=ngPlaceholder'
|
|
},
|
|
link: function (scope, elem, attr) {
|
|
scope.$watch('placeholder', function () {
|
|
elem[0].placeholder = scope.placeholder;
|
|
});
|
|
}
|
|
}
|
|
});
|
|
})();
|