Top "Angular2-forms" questions

An Angular form is a collection of data input controls.

How to add form validation pattern in Angular 2?

I have a simple form that needs to validate if the beginning and the end of the input is not …

validation angular angular2-forms
How to make readonly all inputs in some div in Angular2?

I have a page with many inputs, and I want to make it 'readOnly' I find this solution: How to …

angular typescript readonly angular2-forms
ngModel cannot be used to register form controls with a parent formGroup directive

After upgrading to RC5 we began getting this error: ngModel cannot be used to register form controls with a parent …

angular angular2-forms angular2-formbuilder
angular 2 remove all items from a formarray

I have a form array inside a formbuilder and i am dynamically changing forms, i.e. on click load data …

angular angular2-forms
Reactive Forms - mark fields as touched

I am having trouble finding out how to mark all form's fields as touched. The main problem is that if …

angular angular-reactive-forms angular2-forms angular2-formbuilder
Select based on enum in Angular2

I have this enum (I'm using TypeScript) : export enum CountryCodeEnum { France = 1, Belgium = 2 } I would like to build a select in …

typescript angular angular2-forms
How to upload file in Angular2

I have to submit a form along with image. i have tried this code (with multiple ways) but did't work …

file-upload angular angular2-forms
Two way binding in reactive forms

Using Angular 2, two-way binding is easy in template-driven forms - you just use the banana box syntax. How would you …

angular angular2-forms angular2-formbuilder
File Upload with Angular2 to REST API

Actually, I'm working on a Spring REST API with an interface coded in Angular 2. My problem is I can't upload …

spring angular spring-mvc angular2-forms angular2-http
How to use date picker in Angular 2?

I have tried many date picker in my angular2 app but none of them is working.Although the date picker …

jquery datepicker angular angular2-forms