Skip to content

Instantly share code, notes, and snippets.

@mattraykowski
Created January 29, 2016 19:33
Show Gist options
  • Save mattraykowski/80412c8b34fd4162db02 to your computer and use it in GitHub Desktop.
Save mattraykowski/80412c8b34fd4162db02 to your computer and use it in GitHub Desktop.
(function() {
'use strict';
/* Usage: <input type="password" name="myPassword sensitive-field> */
angular.module('kd.core.admin.common').directive('sensitiveField', sensitiveField);
function sensitiveField() {
var directive = {
link: link,
restrict: 'A'
};
return directive;
function link(scope, element) {
// Put code here.
// $(element).addClass('awesome');
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment