AngularJS Core `
Questions tagged [angularjs-forms]
133 questions
153
votes
9 answers
Can I access a form in the controller?
I'm currently using the following.
$scope.$$childHead.customerForm[firstName], so that:
81
votes
3 answers
Using $setValidity inside a Controller
I am trying to do some validation on file change. Here is my code:
View/Template

Churk
- 4,556
- 5
- 22
- 37
18
votes
4 answers
`ng-pattern` - how to check for only numbers?
I am using an ng-pattern to check for ONLY numbers in my input. But for me that's not working. I can able to type in characters after the number. How can I restrict that?
here is my code :
15
votes
1 answer
ng-pattern doesn't show $error.pattern
I have script here and ng-pattern works correctly because scope.subnet is shown in Output only after input matches pattern. But ng-show doesn't display any error if ng-pattern is not matched
8
votes
1 answer
Angular form is $valid when all inputs are blank, why?
My form is showing up as valid even though all of my input fields are blank.
I have the required keyword in the input fields.

ErikAGriffin
- 739
- 3
- 10
- 21
7
votes
2 answers
AngularJs: Required field validation and highlight for dynamic rows of HTML table with contenteditable
I have an HTML table as below:

user1563677
- 713
- 3
- 15
- 38
7
votes
1 answer
Angular form not working in a table
I created a working form placed in a div below a table;

Morten Nilsen
- 621
- 7
- 18
6
votes
2 answers
How to get file content and other details in AngularJS
How can I get file content while I click on submit button. I'm getting only first and second input.
Please refer to snippet:
!DOCTYPE html>