index and id togtgher angularjs

JavaScript
<div id="{{ 'object-' + $index }}"></div>
//This will be rendered like this
<div id="object-1"></div>
Source

Also in JavaScript: