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
0
votes
1 answer
WPF two-way binding to static properties
I'm currently having problems with two-way binding in WPF 4.6.1. It simply doesn't work, I used this example.
https://www.c-sharpcorner.com/UploadFile/mahesh/binding-static-properties-in-wpf-4-5/
My project has two windows (a numerical keypad that…

Miguel Rosales
- 769
- 4
- 13
- 29
0
votes
1 answer
Two way databindning in android
lets say I have a login form that await until the user imports a 10 digit phone number, then it changes the next's button visibility
How can I achieve that in XML with no code?
here is the phone check function:
fun EditText.isValidPhone() =…

Jack
- 1,545
- 2
- 11
- 20
0
votes
2 answers
Setting ngModel dynamically
I am trying to build a basic Polling App which has the fields as shown in the image.
Since there are fields for two inputs i want binding for each field(Option 1 & Option 2 as option1 and option2 respectively so i can reference it in the ts…

Saigal Amatya
- 383
- 1
- 8
- 22
0
votes
1 answer
Wpf tree-view two-way binding not working when using custom style for TreeViewItem
I tried to set up a custom styled treeview that does "just in time" loading by two-way binding the expanded property to a similar property in the view-model. The style and functionality aspects work fine on their own, but not when put together.…

Ruben Bohnet
- 392
- 1
- 12
0
votes
2 answers
Ionic 3 - One/Two-Way Binding Usage
The purpose of the app is to check whether a student is absent or present. For testing purposed. I have this code on my app.
HTML
Students

skrrrrr
- 29
- 10
0
votes
1 answer
Disable two way data binding in Angular 2+ (5)
I have an issue with getting countries and states by country.
So I have a grid(table) with users and each user has countyId(number) and stateId(number).
In ngOnInit I get all countries. I show states when open user details or when happening editing…

Maksym Krugliachenko
- 323
- 4
- 12
0
votes
1 answer
Knockout two way binding not working with Sharepoint modal dialog
I'm trying two way binding (knockout observables) with sharepoint modal dialog
var ViewModel = function () {
var self = this;
self.firstName = "Irfanullah";
self.lastName = ko.observable('M.');
self.fullName =…

sairfan
- 970
- 2
- 12
- 20
0
votes
3 answers
Angular before two-way data binding event
Is there an event that fires before two-way data binding.
I have this
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…

GuyBiton7
- 1
- 1
- 1
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:…

Shankar M Rudraiah
- 47
- 1
- 7
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:…

Midas74
- 13
- 3
0
votes
1 answer
Angular two way binding between input and lists
I have the following:
What I am trying to do is that let say there are 5 lists.…
{{list.Name}}

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:

Darrel Holt
- 870
- 1
- 15
- 39