All Questions
Tagged with angular-validation angularjs-directive
6 questions
0
votes
1answer
62 views
Angular: How to apply validation directives to a child of the custom template
I'm trying to create a custom Angular component that wraps existing Form components into a single component e.g. instead of having a label, text box, validation error spans, I have a component that ...
0
votes
1answer
301 views
Validate that 2 angular Form fields do not have the same content
I have an angular form consisting of two fields location A and Location B.
What I'd like to achieve is a directive that compares both fields and validates accordingly, style the valid or invalid ...
2
votes
0answers
710 views
ng-required not working properly on select the value from dropdown
I have Date of birth drop down field,from that i selected the month,date and year values from dropdown.After selecting them as the error message showing previously it worked fine.
my code for that:
...
0
votes
1answer
107 views
Show custom validation on form load(AngularJs 1.6)
I have a custom validation like this:
app.directive('checkRfc', function() {
return {
require: 'ngModel',
link: function(scope, element, attr, mCtrl) {
function checkRfcValidation(...
-1
votes
2answers
429 views
Triggering form validation programmatically in angular-js
I am using a custom directive to submit a form programmatically however no form validation is applied before submitting the form. I have called $setDirty() on the form field and $setSubmitted() on the ...
1
vote
1answer
221 views
How to set $invalid true to a field in form through a directive in AngularJS
Can anyone please help me to set either $invalid to true or $valid to false through a directive.
When I tried to console.log(ctrl) I got an array named FD having names of the field as well as form ...