mirror of
https://github.com/fergalmoran/roboto-promoto.git
synced 2025-12-22 09:37:37 +00:00
18 lines
462 B
JavaScript
18 lines
462 B
JavaScript
'use strict';
|
|
|
|
angular.module('robotoPromotoApp')
|
|
|
|
/**
|
|
* Removes server error when user updates input
|
|
*/
|
|
.directive('mongooseError', function () {
|
|
return {
|
|
restrict: 'A',
|
|
require: 'ngModel',
|
|
link: function (scope, element, attrs, ngModel) {
|
|
element.on('keydown', function () {
|
|
return ngModel.$setValidity('mongoose', true);
|
|
});
|
|
}
|
|
};
|
|
}); |