mirror of
				https://github.com/mmumshad/ansible-playable.git
				synced 2025-03-09 23:38:54 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			375 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			375 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| 'use strict';
 | |
| 
 | |
| import angular from 'angular';
 | |
| 
 | |
| /**
 | |
|  * Removes server error when user updates input
 | |
|  */
 | |
| angular.module('app2App')
 | |
|   .directive('mongooseError', function() {
 | |
|     return {
 | |
|       restrict: 'A',
 | |
|       require: 'ngModel',
 | |
|       link(scope, element, attrs, ngModel) {
 | |
|         element.on('keydown', () => ngModel.$setValidity('mongoose', true));
 | |
|       }
 | |
|     };
 | |
|   });
 |