1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 10:39:25 +02:00
OpenSTF/res/app/components/stf/common-ui/error-message/error-message-directive.js
Gunther Brunner a83ecd43ed Add error-message directive.
Improve UX for focus handling.
2014-09-26 17:47:14 +09:00

15 lines
321 B
JavaScript

module.exports = function errorMessageDirective() {
return {
restrict: 'EA',
replace: true,
scope: {
message: '@'
},
template: require('./error-message.jade'),
link: function (scope, element, attrs) {
scope.closeMessage = function () {
scope.message = ''
}
}
}
}