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
1
vote
1 answer

store state of member variable in angular 2 class

export class RSDLeadsComponent implements OnInit{ templateModel:RSDLeads = { "excludedRealStateDomains": [{"domain":""}], "leadAllocationConfigNotEditables": [{"attributeName":""}] }; oldResponse:any; …
1
vote
0 answers

Data Binding broke after upgrade to Play service to 10.2.0

I am using Android Studio 2.3 & Here is app level gradle which is working perfectly with play service 10.0.1 apply plugin: 'com.android.application' ext { retrofitVersion = "2.1.0" sdkVersion = 25 supportLibVersion = '25.3.0' …
1
vote
1 answer

Angular 2: buttons data binding NgModel

I am trying to bind some group radio buttons with NgModel and take their values inside my component. The problem is that when I use 'data-toggle="buttons"' I cannot catch the click or change event. How can I solve this problem?
pik4
  • 1,283
  • 3
  • 21
  • 56
1
vote
1 answer

Data Binding Not Working Android

I am using the data binding library and i got it so for but there are issues that i cant't seem to get.For starters This is a part of my xml layout activity_login.xml
1
vote
1 answer

Polymer: detecting an object property change from the parent component

I have a component that loads an object from Firebase using firebase-document. Then that object is passed to a child component. When I change the object in the child component, the change is not detected in the parent, so the object is not updated…
1
vote
1 answer

Another Angular2 Two-Way DataBinding (with Meteor)

I've browsed through some of the question here on Data Binding on Angular2, but I'm not able to get the result I was expecting. I'm also new to both Angular & Meteor. Here's what I have in my app.component.html
Neil P.
  • 1,026
  • 2
  • 15
  • 32
1
vote
0 answers

how to pass attributes from a parent to a child element in polymer Using data binding

I'm trying to pass an attribute's value from a parent element into it's children, here is what I'm trying to do : the parent/child elements that I'm using are defined like this :
1
vote
0 answers

Angular2 - Two way databinding on each index of array

In my project a product can have multiple price lists. Each price list can contain different price of that particular product. When i edit a product i want to fetch all the prices of that product according to their price list. I can successfully…
1
vote
4 answers

Data-Binding Property Value "Flickers"

Problem: When I change the value of "LuxVoltage" in the GUI via the Slider or the NumericUpDown the Value jumpes from "default value" (in this case 0) to the "actual value". Assuming I set the Value to 1000 and print out every set this is what the…
user4643981
1
vote
0 answers

How to bind variable when calling directive using element.addClass

I am calling directive adding a class to element and compiling element eg var el = angular.element(document.querySelector(".ctrl-outer-container")); el.addClass('directive-name); $compile(el)(scope); while calling directive this way How can I bind…
1
vote
2 answers

How to wait till data is assigned to model in Angularjs?

I have a model which I use to iterate and create a tabular structure on my view. I have a button on click of which I have to get the latest value from DB and assign to model. Then I get the innerHTML of model and create a pdf of my current view. I…
Peter
  • 10,492
  • 21
  • 82
  • 132
1
vote
0 answers

Two way data bind two arrays as an one-to-many relationship? (Polymer)

I’m having some difficulties when using the data binding system to keep two arrays with a one-to-many relationship in sync. The basic app idea is that I need to edit photos. Each photo may be present inside many slots. Objective Given two array of…
1
vote
1 answer

OnsenUI AngularJS data binding not working properly

I create a simple example of what I'm about to do: ons.bootstrap() .controller('AppController', function($scope) { $scope.x = 0; setInterval(function() { $scope.x = $scope.x + 1; }, 500) });
1
vote
1 answer

JsViews Checkbox binding from an inner loop

I am trying to get a two way binding for a checkbox in an inner loop using JsViews Not sure if this is possible.