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>
How get index of one of two div tag without i don't using ng-repeat?
|
||||
HTML:
JS:
|
|||
|
for me this worked
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
? – Makoto 2 days agong-submit
. – JLRishe 2 days ago<div ng-click="formselect(0)"></div><div ng-click="formselect(1)"></div>...
? – Phil 2 days ago