Top "Angular4-forms" questions

Questions related to Angular 4 template or reactive forms.

Angular4 - No value accessor for form control

I have a custom element : <div formControlName="surveyType"> <div *ngFor="let type of surveyTypes" (click)="onSelectType(type)" […

javascript angular typescript angular4-forms
Get Value From Select Option in Angular 4

How do I get the value from the select option in Angular 4? I want to assign it to a new …

angular angular-directive angular4-forms
Angular 4 Form Validators - minLength & maxLength does not work on field type number

I am trying to develop a contact form, I want user to enter phone number values between length 10-12. Notably …

forms angular validation angular4-forms
Angular 5 - form validation e-mail

i want to solve this problem: Angular 5 - template driven form An input-field has type email. Example: <input type="…

angular angular4-forms
Property 'controls' does not exist on type 'AbstractControl' Angular 4

I am trying a nested reactive form in Angular 4. It is working fine but when I try to build AOT …

angular typescript angular2-forms angular4-forms
Angular 4 mat-form-field with mat-select

So, I am having problems using mat-select with mat-form-field . Using mat-form-field with mat-input is not a problem, and I am …

angular angular-material2 angular4-forms
ng-bootstrap not working in angular 4

I am new with angular 4, I am trying to configure bootstrap. I installed ng-bootstrap: https://ng-bootstrap.github.io/#/getting-started I …

twitter-bootstrap angular bootstrap-4 ng-bootstrap angular4-forms
How to change the output date format of input type="date" in angular 4?

Actually I am working with angular 4 application. I am having a scenario like, I have to send the Date for …

angular angular4-forms
Angular manually update ngModel and set form to dirty or invalid?

I have a form and an underlying model like this From component myTextModel: string; updateMyTextModel(): void { this.myTextModel = "updated model …

angular typescript angular4-forms
Load Dynamic templates within a single component using Angular 4

My requirement is to build a component which has 2 or more html templates where as each html template has atleast 20 …

angular angular4-forms