
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Polymer 1.0 dom-repeat should display index starting at 1 with HTML
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:
<span>{{displayIndex(index)}}</span>
The displayIndex would be:
function (index) { return index + 1; }
Let us see it in an example:
<div>Subject <span>{{displayIndex(index)}}</span></div>
Advertisements