Found 1 Articles for Polymer

Polymer 1.0 dom-repeat should display index starting at 1 with HTML

Samual Sam
Updated on 28-Jan-2020 09:20:46

104 Views

Polymer.js is a JavaScript library created by Google that allows reusing the HTML elements for building applications with components.To achieve this index, you need to set the index as:{{displayIndex(index)}}The displayIndex would be:function (index) {    return index + 1; }Let us see it in an example:Subject {{displayIndex(index)}}

1
Advertisements