UNPKG

generator-ngfs

Version:

Yeoman generator for creating MEAN stack applications, using MongoDB, Express, AngularJS, and Node

14 lines (11 loc) 306 B
'use strict' ### Removes server error when user updates input ### angular.module('<%= scriptAppName %>') .directive 'mongooseError', -> restrict: 'A' require: 'ngModel' link: (scope, element, attrs, ngModel) -> element.on 'keydown', -> ngModel.$setValidity 'mongoose', true