FAQ Database Discussion Community


What's the difference between binding to [[var]] and {{var}} in Polymer 1.x?

data-binding,polymer,2-way-object-databinding,polymer-1.0
I am familiar with bindings with curly braces, like {{variable}}, from Polymer 0.5. However, in examples and code snippets for the release version of Polymer, I've begun to notice bindings with square brackets, such as [[variable]], as well. Does {{variable}} mean something different now, or is it the same and...

Angular2 two-way data binding

data-binding,2-way-object-databinding,angular2
I know Angular2 doesn't have two-way data binding but is there a way to mimick the two-way data binding behavior from Angular1.x?

Updating a polymer element template

javascript,templates,polymer,web-component,2-way-object-databinding
Okay, so I have a bunch of polymer customer element siblings as the different pages of my single page app... They are all contained within a core-animated-pages element. I communicate data via a shared custom element that uses core-localstorage as its backend. Now, one one child is done, it fires...

backbone stickit - reverting model changes

javascript,backbone.js,2-way-object-databinding
I'm now testing backbone stickit for two-way data binding. Is there a way to revert the changes, for example, while editing a model data through a form, the user press the cancel button, as in the pic below It seems the model was changed on the fly as we type...

OpenUI5 binding property with a function, instead of direct access

javascript,openui5,2-way-object-databinding
I would like to bind a property (flag_baz in this case) from a JSONModel to a checkbox. Thing is that the json model looks like this. { foo: "Foo", bar:"Bar", flag_baz : "X" } in this case X means "true" and an empty string means "false" What i would like...

TwoWay Binding is not working if Binding is changed from DataTrigger

wpf,datatemplate,datatrigger,2-way-object-databinding
I have the following DataTemplate for my Tool Bar Items: <DataTemplate DataType="{x:Type viewModels:PopupContextActionViewModel}"> <Grid> <ToggleButton Name="ToggleButton"> <ContentControl Template="{Binding Icon, Converter={StaticResource NameToResourceConverter}}" Margin="5" /> </ToggleButton> <Popup Name="ContextActionPopup" StaysOpen="False" AllowsTransparency="True" IsOpen="{Binding ElementName=ToggleButton, Path=IsChecked, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"> <Border...

Simple DataBinding in wpf application

c#,wpf,data-binding,2-way-object-databinding
Hi I am trying to study simple data binding in wpf. I tried and am not succeeding.. please suggest ways.. <Window x:Class="WpfTestApp.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="250" Width="350"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="70"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="50"/>...

Polymer prevent databinding

javascript,data-binding,polymer,2-way-object-databinding
Data binding is good, very good. But for once it is getting in my way. I have a default array of users that I insert in each item on my page. The idea is that each item has a checkbox for each user. Currently I create my emptyUsers-item like so:...

Using Data Binding on a WinForm Combox with formatting for adding and removing items

c#,.net,winforms,2-way-object-databinding
I'm maintaining some old WinForms in NET Framework 3.5 in both Visual Basic and C#, but I'm having a hard time trying to binding to a POCOs data class. I got this (using INotifyPropertyChanged): public string DisplayUnits { get { return _displayUnits; } set { _displayUnits = value; NotifyChange("DisplayUnits"); }...