Questions tagged [two-way-binding]

351 questions
0
votes
0 answers

Angular 2+ update value in select after call modal

I have a problem with setting the default value to the select element after it is added to the modal window. Below is a piece of code that will probably help to understand what is wrong. This is my SELECT I want something like this
Lazar Krstic
  • 91
  • 2
  • 8
0
votes
0 answers

Using a custom pipe "two-way" in reactive forms

I used this post to create a custom pipe and apply it to my reactive form. Applying a pipe or transform to a Reactive Form value This works fine when loading the form, values are multiplied by a factor. But it does not work the other way around when…
baouss
  • 1,312
  • 1
  • 22
  • 52
0
votes
2 answers

custom input text inside reactive form without ngModel

my custom text input : import { Component, Inject, Injector, Input, Optional, ViewChild, Output, EventEmitter } from '@angular/core'; import { NG_VALUE_ACCESSOR, NgModel } from '@angular/forms'; import { ValueAccessorBase } from…
0
votes
2 answers

Two way binding issue in angular4

I am not able to get the two way binding in angular4 working. Here is the component code. import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-date-selector', templateUrl: './date-selector.component.html', styleUrls:…
0
votes
1 answer

ng-change update model with latency

everyone. I have a trouble with angularjs. I created custom directive for input[type="text"] and passed into variable as model. But ng-change event called function with previous value of variable. Example: State: 0, Type 1, In function - 0. State:…
0
votes
1 answer

Angular two way binding between input and lists

I have the following:
{{list.Name}}
What I am trying to do is that let say there are 5 lists.…
Steve Kim
  • 5,293
  • 16
  • 54
  • 99
0
votes
1 answer

AngularJS Two-way data binding canceled out by setTimeout

I've got this snippet of HTML using the Controller As syntax: