136 questions
            
            
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                61
            
            views
        
        
            
            
            
        How to obtain nested object correctly from NgForm?
                    I need to obtain keyvalue correctly from ngForm.
I have a User interface in Angular like this:
export interface User {
 id: int; 
 name: string; 
 surname: string; 
 school: School;  
}
And School ...
                
            
       
        
            
                2
            
            votes
        
        
            
                1
            
            answer
        
        
            
                282
            
            views
        
        
            
            
        angular ngSubmit doesnt work (button inside and module imported)
                    I'm a beginner with angular testing the framework for the first time.
I have a simple form
<form (ngSubmit)="onSubmit()">
   <label for="test">Test Prompt: </label&...
                
            
       
        
            
                0
            
            votes
        
        
            
                0
            
            answers
        
        
            
                82
            
            views
        
        
            
            
        Angular js form validation without html form
                    I have an input tag
                                    <div class="form-group" ng-form name="patientLinkingForm">
                                        <input type=&...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                447
            
            views
        
        
            
            
        How to post data in Angular ngForm and acomponent ts
                    How can I be able to post may data using this angular ngForm?
I really have trouble doing this part I need your experience in this one.
I added my service.ts below. I am really new to this one I hope ...
                
            
       
        
            
                1
            
            vote
        
        
            
                4
            
            answers
        
        
            
                8k
            
            views
        
        
            
        Template driven form not working.. "Error: Export of name 'ngForm' not found"
                    I have added the FormsModule in the component module and also tried by adding it to the app module but the same error is repeating 4 times in the console. Please help me fix this issue.
grant-access....
                
            
       
        
            
                0
            
            votes
        
        
            
                0
            
            answers
        
        
            
                149
            
            views
        
        
            
            
        how to grap input value in html component from service class in order to update a variable this service has
                    Good Day developers, im trying to find the way to grap a value an input html tag has from my service class in the same angular class.This input is attached to an ngForm thus is linked to a model ...
                
            
       
        
            
                1
            
            vote
        
        
            
                1
            
            answer
        
        
            
                311
            
            views
        
        
            
            
            
        Angular Forms: Cannot find form control in Angular Forms
                    I ma trying to set values inside my angular form and I am getting error as "Cannot find form control with name : eDate. at FormGroup._throwIfControlMissing (forms.js:5225)".
My form html looks like ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                302
            
            views
        
        
            
            
        How to get validation info of an input outside of a form?
                    We can get the validation info if the input is in a form: $scope.myForm.myField.$invalid etc..
What if input is outside of a form? How can we access the info?
I guess that field data (properties of ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                892
            
            views
        
        
            
            
        fetch all values in form using ngModel directive in angular
                    I am trying to fetch all the values which are in form using ngModel but some how I am getting only first text boxes values. Not getting textbox values added on click of button.
Example: stackblitz
...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                540
            
            views
        
        
            
            
            
        Publishing an Input outside the Form to the Form via name programmatically with Angularjs
                    I need to publish an Input to a Form, while the Input sits outside the form. I managed to add the input, but the result is not what I excactly need (see the console output)
So I basically adding the ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                51
            
            views
        
        
            
        How to populate localstorage key value in Ng Field
                    I have a field that uses the Ng Directive for the required validation but i want to by default populate it with the value of my localstorage key localstorage.getItem('actreel');
FIELD
<div class="...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                614
            
            views
        
        
            
            
        angularjs ng-form and ng-repeat with input validation and submit action
                    Angular 1.6.2
Try to iterate over elements of collection inputted by user and then check their validity and enable submit action if validation passes.
I try to use ng-form for this purpose and have ...
                
            
       
        
            
                1
            
            vote
        
        
            
                1
            
            answer
        
        
            
                624
            
            views
        
        
            
            
            
        value attribute does not appear in Angular ngForm
                    I have a simple Angular ngForm I'm using for a put request. Because I need the id attribute to make the put request, I have attempted to add it in a hidden value. However, whenever the form is ...
                
            
       
        
            
                1
            
            vote
        
        
            
                1
            
            answer
        
        
            
                29
            
            views
        
        
            
            
        Click add button does not show the data
                    After I input the data and click add button, it shows blank data on the list instead of showing the data on the list. there is an error that says:  expected 0 argument but got 3. I created a const ...
                
            
       
        
            
                1
            
            vote
        
        
            
                1
            
            answer
        
        
            
                46
            
            views
        
        
            
        angular 2 check validity when no covering ngform
                    <input  matInput  [(ngModel)]="testDate" (ngModelChange)="mychange($event)" [value]="minDate" [min]="minDate" [max]="maxDate" [matDatepicker]...
I dont have a covering ngform or submit button. In ...
                
            
       
         
         
         
         
         
         
         
        