I
I
Isherath2018-06-04 22:18:25
Angular
Isherath, 2018-06-04 22:18:25

How to get the DOM index of an element in AngularJS (jQlite)?

Tell me, how can I find out the ordinal number of the element on which I click, if there are several such elements?
I need to multiply the resulting element index by a certain number.
index() like jQuery doesn't work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2018-06-05
@streetflush

In Angular, it's strange to use the element's ordinal number. If you display it in a loop, use
A in a click pass this very $index

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question