Questions tagged [ng-messages]

Use for questions about the AngularJS ng-messages module.

Resources

170 questions
0
votes
1 answer

why ngMessages alert appears only one time?

why ngMessages alert appears only one time? When I use (data-dismiss="alert" class="close") from the bootstrap options the alert is hide but then it never shows up again.
lito
  • 3,105
  • 11
  • 43
  • 71
0
votes
1 answer

Best way to show/hide ng-messages container

Let's say I have the following input field:
Please enter a name
The issue is that the ng-messages element takes up space in the DOM, so it's affecting the…
Paul Erdos
  • 1,355
  • 2
  • 23
  • 47
0
votes
1 answer

From where is a ngMessages directive in angular initiated, and can I initiate it manually?

I am using ngMessages for form validation. I am facing the problem is that my html is creating dynamically by javascript and angular.message.js is loading before that. So I want to trigger ngMessage when all the dynamic HTML elements gets created.
Arun Arya
  • 1
  • 3
0
votes
3 answers

How to use ng-messages for type='file'?

I'm using ng-message to show the error messages for the form it works fine for the input type='text' and other but how to use ng-message on input type='file' to show different messages based on the extension of the uploaded file. Or is their any…
Sparsh Pipley
  • 451
  • 8
  • 22
0
votes
1 answer

Angularjs | ng-message not showing error message when load html from directive by using $compile

I am creating dynamic from through ng-repeat from json. my form.html
Pritam Parua
  • 672
  • 2
  • 8
  • 27
0
votes
1 answer

angularjs | form validation | ngMessages not displaying error message

I am able to get error, like field is becoming red, showing character count is becoming red. But error messages not showing . No error found in console. I have added angular-1.3.4 ngMessages dependency also. Please help.
Pritam Parua
  • 672
  • 2
  • 8
  • 27
0
votes
1 answer

Upgrade angular-messages affect my layout

Here is the screenshot of my login form: But after I upgrade angular-message to version 1.4 and above, the layout changes to: My source code:

Login

Bagusflyer
  • 12,675
  • 21
  • 96
  • 179
0
votes
3 answers

How show validation messages from REST service on screen with AngularJS?

I have a controller like this: (function() { 'use strict'; angular .module('app.bookmark') .controller('BookmarkEdit', BookmarkEdit); function BookmarkEdit(BookmarkService, $stateParams, $state) { var vm = this; vm.bookmark = {}; …
Luciano Borges
  • 817
  • 3
  • 12
  • 31
0
votes
2 answers

Custom validation directive using ng messages and typescript

I'm trying to build a module that has directive for custom validations and showing them using ng-messages The validations are done via regex. The error I am seeing is : Error: [$compile:ctreq] Controller 'ngMessages', required by directive…
0
votes
2 answers

angular-messages nested directive, how to keep it working with other directives

I am playing with AngularJS to discover its power but I have to admit the documentation is not very developed, so I'm asking here the community for a problem I'm facing with nested directives. I'm more looking for the reasonment (and explanations on…
Bil5
  • 502
  • 1
  • 5
  • 15
0
votes
3 answers

Show/Hide ng-messages wrapper only when focus field is dirty

I triying to display/hide my ng-messages div only when the field in target is dirty and contain an error... I have this ng-messages wrapper :
0
votes
1 answer

Angular JS ng-message update only on page submit

I have a form wherein I am displaying validation errors only on page submit as in the code below. This validation works fine but as soon as the user corrects the validation on the input field. The validation message goes away immediately. Is there a…
0
votes
1 answer

ngif markup error while displaying ngMessages error in angularjs

i am using ngMessages to validate a form , which is dynamically generated using ngRepeat.ngMessages is working fine but i want to display validation error messages only submit button is clicked.I am using ng-if for checking submit button clicked and…
Bumble
  • 557
  • 3
  • 10
  • 24
0
votes
2 answers

Multiple required inputs in ng Messages [Angular]

I recently have a problem with ng message in angular. I tried to use it as validator however noticed that something don't work the way I want. I want the ctrl.login() function run when the user provide both password and username. Unfortunately right…
user4321187
0
votes
1 answer

ng-message-exp shows all messages

When I use ng-message, it works as intended. However, when I try to use ng-message-exp, it shows all messages at once. Can someone confirm if it is a bug? Please find the plnk here
Anshu Kumar
  • 606
  • 6
  • 18
1 2 3
11
12