Questions tagged [ng-messages]

Use for questions about the AngularJS ng-messages module.

Resources

170 questions
4
votes
2 answers

AngularJS: Hiding ng-message until hitting the form-submit button

This is a typical example of the use of ng-messages in AngularJS (1.x):
mvermand
  • 5,829
  • 7
  • 48
  • 74
4
votes
1 answer

AngularJS form validation ngMessages not working with multi-step form

I am using AngularJS 1.5, ui-router for state management and ngMessages for validation and ngMaterial for UI. I have one main view contained in myformView.html and I load inside it two states (firstPartView.html and secondPartView.html). I followed…
4
votes
2 answers

Angularjs ngMessages ng-messages={multiple .$error}?

I'm new to angularjs and I was just wondering about what ngMessage 'ng-messages' attribute can do. I'm trying to display one ngMessage for multiple input[type=text] elements. for example:
dei
  • 41
  • 5
4
votes
3 answers

Show multiple messages for different form fields using ng-messages

Is it possible to use ng-messages with angular 1.3 and show validation summary on the top with error messages for different fields?
Need to show required error for field 1.
user636525
  • 3,180
  • 9
  • 38
  • 51
3
votes
2 answers

AngularJS: Show form input error on change / typing / immediately

If you delete the initial text that is in the input element in the example below, then it will not show an error until you blur the element. I want to have the input element underline turn red and the error show immediately when you delete the last…
3
votes
2 answers

AngularJs ng-messages not working properly

I am trying to make a validation with ng-messages in AngularJs 1.6.4. But as soon as I type in in the form it shows all 3 ng-messages, and after that they won't go away until a page refresh. So even when the maxlength isn't reached it shows "your…
Soundwave
  • 605
  • 2
  • 9
  • 22
3
votes
2 answers

Ngmessages Uncaught TypeError l.module(...).info is not a function

I've installed Angular-Messages to my Ionic V1 App but I cannot make it work. Error: Uncaught TypeError: l.module(...).info is not a function at angular-messages.js:267 at angular-messages.js:6 This is my index.html: