Questions tagged [2-way-object-databinding]

Two-way data binding (bidirectional data binding) refers to two components acting as the source object for the destination properties of each other.

333 questions
2
votes
1 answer

DataBinding ObserableField not updating the view

I've gone through many post related to the data-binding but didn't find the solution for my problem. I've created a sample app to learn the data binding. Expected Behaviour: I've a edittext and textview. The textview should get updated with…
Rahul Chaurasia
  • 1,601
  • 2
  • 18
  • 37
2
votes
1 answer

Angular 2 Two-way Data Binding redundant setter call

I wanted to implement Two-way Data Binding in my component following this tutorial: https://blog.thoughtram.io/angular/2016/10/13/two-way-data-binding-in-angular-2.html . It works, but I discovered that after every change the setter is called twice…
2
votes
1 answer

string interpolation in angular 2 and it's dynamicity

In Angular2, why if i put a property in a simple view, like this: {{allowServer}} it change whenever its value change on its .ts file, and if i put it like this:
2
votes
2 answers

How to correctly 2-way-bind with reactive forms?

So far I've always seen that you shouldn't mix using [(ngModel)] with reactive forms, and instead simply use formControlName. However, for me it doesn't seem to be working? I have a form and I add controls to…
Nicolas
  • 4,526
  • 17
  • 50
  • 87
2
votes
1 answer

2 Way databinding for Webview and ProgressBar

I am trying to implement 2 way databinding for WebView and Progressbar. Initially ProgressBar will continue to appear and as soon as webview finishes loading , progress bar should be GONE. But I am not able to create that binding I have created…
Napolean
  • 5,303
  • 2
  • 29
  • 35
2
votes
1 answer

Angular 2 Two-way Binding updates mock service constant

As I was going through the "Tour of Heroes" Angular 2 tutorial, I have noticed that when ngModel changes, the change propagates to other components utilizing the same object. But when I tried to log the mock service constant HEROES on the console,…
Rax Weber
  • 3,730
  • 19
  • 30
2
votes
2 answers

2 way binding between 2 components works only on first letter

I am getting a very strange error that i have researched and I am having trouble figuring out. Most all of the items that I have found similar are about a year old before final changes and do not work now. Error Message Expression has changed after…
JamTay317
  • 1,017
  • 3
  • 18
  • 37
2
votes
1 answer

How does [(ngModel)] works with Unidirectional data flow in Angular 2

Angular 2 supports unidirectional data flow, one way at a time. How does two way data binding [(ngModel)] works in Angular2 ?
Shivanka
  • 723
  • 2
  • 8
  • 21
2
votes
1 answer

.Net ObjectDataSource error: Object does not match target type

I have an ObjectDataSource on a page that is producing the error "Object does not match target type" when its Insert method is invoked. From Googling this message, I believe this the message is deceptive and I'm actually getting a null reference…
2
votes
2 answers

AngularJS data binding when using ng-repeat

I apologize if this has an awkward question title. I need help understanding how to perform the proper data binding in a certain case. I have an object I call TimesheetData this object stores a string which is the week like 6/13/2016, it also has an…
Bailey Miller
  • 219
  • 2
  • 12
2
votes
1 answer

Polymer 1.0: Two-way data binding: to/from Firebase

I want to two-way databind the field values of an iron-form to a Firebase node (representing user-defined settings, for example). settings.html