How get index of one of two div tag without i don't using ng-repeat?
I tried this but it didn't work;
<div ng-click="formselect($index)"></div>
<div ng-click="formselect($index)"></div>
for me this worked
<div ng-click="formselect('0')"></div>
<div ng-click="formselect('1')"></div>
or if you want to load variables from angular js look into this fiddle or refer to the answer provided in the link
ng-repeat?ng-submit.<div ng-click="formselect(0)"></div><div ng-click="formselect(1)"></div>...?