index and id together angularjs

JavaScript
<div id="{{$index}}" 
or 
id={{'flowchartWindow'+$index}}
Source

Also in JavaScript: