Top "Angular2-ngmodel" questions

Angular 2's ngModel directive used for two-way databinding

Angular 2 - setting default value in dropdown when default is hard coded

I have the following dropdown. I want to set All Patients as the default value. <select [(ngModel)]="searchModel.careprovider"&…

javascript angular typescript ngfor angular2-ngmodel
angular2 access ngModel variable from a directive

I am trying to build a datetime picker directive like the following. <input [(ngModel)]="date1" datetime-picker date-only /> and …

angular directive angular2-ngmodel
(ngModelChange) does not update the UI for specific input

I have an input field where the user can enter the rate of something. When the user enters a value, …

angular angular2-ngmodel
How to set default selected values in multiselect with ngModel in Angular 2

How to set default selected values in multiselect. I get current_options and all_options from database and I want …

angular angular-ngmodel angular2-ngmodel ngmodel
Angular2 selected option with objects

I have an Angular 2 app that is dealing with customers and a spring rest back end. The customer object has …

angular ngfor angularjs-ng-value angular2-ngmodel
Angular select option with selected attribute not working

Using Angular 4, I have a html template and I want a selection box with two options. One of those options …

angular html-select angular2-ngmodel
Angular 6 how to pass selected checkbox to ngModel

I have problem with pass selected checkbox (which is iterated) to ngModel. <label class="btn btn-outline-secondary" *ngFor="let test …

angular checkbox ngfor angular2-ngmodel
Angular 2 + how to select and loop over multiple elements with the same selector (elementRef.nativeElement)

In my component I am trying to unselect all checkboxes with the same class name. querySelector selects only the first …

javascript angular angular2-ngmodel
Angular2 - Prevent Checkbox from being checked

I have a table that contains a checkbox per row. In the table header, I have a Check All checkbox …

javascript angular typescript angular2-ngmodel
Angular 2 Forms: binding html select to collection of objects

I would like to display a collection of selectable objects in an angular 2 application (RC 5, forms 0.3.0) <select [(ngModel)]="selectedItem"&…

html forms angular angular2-ngmodel