Top "Angular2-forms" questions

An Angular form is a collection of data input controls.

Got interpolation ({{}}) where expression was expected

I have the following HTML but i get the the exception. How to fix it ? Parser Error: Got interpolation ({{}}) where …

angular angular2-template angular2-forms
TypeError: Cannot create property 'validator' on string '[email protected]' at setUpControl

I face issue in formGroup. First Based on URL I take some value and call to API for retrieve particular …

javascript angular angular2-routing angular2-template angular2-forms
Angular 2: Accessing data from FormArray

I have prepared a from using ReactiveForms provided by angular2/forms. This form has a form array products: this.checkoutFormGroup = …

angular typescript angular2-forms
Angular 2 - formControlName inside component

I want to create a custom input component that I can use with the FormBuilder API. How do I add …

angular angular2-forms
Radio button for boolean property

I have a simple boolean property valid in my object document and need to bind it to radio-inputs. This is …

angular angular2-forms
How to display error message based on custom validation rules in Angular 2?

I am using a template-driven approach to building forms in Angular 2 and I have successfully created custom validators that I …

typescript angular angular2-template angular2-directives angular2-forms
How to unit test a FormControl in Angular2

My method under test is the following: /** * Update properties when the applicant changes the payment term value. * @return {Mixed} - …

unit-testing angular jasmine angular2-forms angular2-testing
Angular 2 form validation, minLength validator is not working

I have following Angular 2 form: <register> <form [ngFormModel] = "registrationForm"> <div class = "form-group"> <label …

validation angular angular2-forms
What is updateValueAndValidity

These docs state the following: If emitEvent is true, this change will cause a valueChanges event on the FormControl to …

angular angular2-forms
Angular 2 prevent enter from submitting in template-driven form

I have forms that uses the template-driven blueprint, so something like this: <form #myForm="ngForm" ngSubmit="save(myForm.value, …

angular angular2-forms