Add ng-click-reveal directive

This commit is contained in:
Johannes Zellner
2016-09-22 14:52:29 +02:00
parent 505f4de55d
commit 80b70bf0a9

View File

@@ -322,6 +322,19 @@ app.directive('ngClickSelect', function () {
};
});
app.directive('ngClickReveal', function () {
return {
restrict: 'A',
link: function (scope, element, attrs) {
element.addClass('hand');
element.bind('click', function () {
element.text(attrs.ngClickReveal);
});
}
};
});
// https://codepen.io/webmatze/pen/isuHh
app.directive('tagInput', function () {
return {