AngularJS form validation directive for showing input errors
I need to create a validation directive for showing all input errors for each input automatically. This validation directive should show all errors at current moment and list of errors should be updated automatically while user is typing. I need to show all errors for input if input is dirty, not empty and invalid. I need to add all errors into html element near this input element. For example if input have type="email" and ng-minlength="5" and user typed 'abc' I need to show such errors near this input: 'Invalid email; Please enter at least 5 characters;' For example if input has type="number