First Polymer Project Test

Data Binding

This was the most important stage, it allowed me to understand the basics of the Polymer Project and how the concept would work. This first test was to get used to concept of components by writing my own and connecting it to another file. The aim of this was to create a component that would allow the user to add text into a box and let allow it to become applied in a sentence on the screen, the technical term for this is two way data binding.

 

The Code;

This file is the actual component, it is what is referred to from the index.html.

data-binding.png

This is how I implement the custom element.

data-binding2.png

 

The Result;

As you can see below, the outcome was exactly as expected.Screen Shot 2016-03-12 at 07.35.01Screen Shot 2016-03-12 at 07.35.18

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s