1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 10:39:25 +02:00

Add error-message directive.

Improve UX for focus handling.
This commit is contained in:
Gunther Brunner 2014-09-26 17:47:14 +09:00
parent d6848c7f17
commit a83ecd43ed
10 changed files with 101 additions and 10 deletions

View file

@ -0,0 +1,15 @@
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 = ''
}
}
}
}