July 2014 6
Resolving Polymer ReferenceError Platform is not defined
While coding for Polymer JavaScript library for web component you will face an exception “ReferenceError Platform is not defined”, though all the library are included properly. In this Demo, “We will see How it occurs and its solution “. Below screen shot shows the chrome inspect of loaded HTML of a sample polymer code.You can […]
Use Of Polymer Core Selector Element
Polymer provides core-selector element for element selection. In this Demo, “We will learn the use of core selector element“. In the demo we have maintained a list of student detail in JSON. When user click on any student it is selected and color changes to RED/GREEN base on the mark.If the student score is more […]
Polymer Nested Custom Component Use
Polymer supports Nested Custom Components creation. In this Demo, “We will create two custom component where One component will call another insides its template“. The first component ts-names is the list of the names.The second component ts-red alters the colors of the text to red. publish property is necessary for inner component for a […]
Use of Polymer async Method
Polymer WebComponent library provides async() method to handle asynchronous behavior . It is similar to Window.setTimeout() method with current context(this) attached to it. In this Demo,”We will see the use of async() method to build a clock“. Below code has the definition for our ts-clock component in index.html. <!doctype html> <html> <head> <title>Polymer […]