1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 02:29:26 +02:00
OpenSTF/res/app/components/stf/common-ui/error-message/error-message-directive.js
Gunther Brunner f0b111cdf6 JSHint fixes.
2014-09-30 14:23:52 +09:00

15 lines
305 B
JavaScript

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