Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

Latest commit

 

History

History

binding_to_a_field

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Binding to a Field

Ports https://github.com/PolymerLabs/polymer-snippets/blob/f5651613ea5db9c2e50a2f4df8f27c64c07755db/snippets/basics/binding-to-a-property.html

Shows simple use of data binding in a Polymer element.

For Polymer elements, the model is the element itself, and any @property field is available in the template within double mustaches ({{}} or [[]]).

See binding-to-a-text-input.html for a version of this snippet where the color property can be modified using a text <input>, resulting in two-way data binding.