R
R
Rain Summers2015-11-26 12:23:42
Angular
Rain Summers, 2015-11-26 12:23:42

How to teach WebStorm to correctly work with $index from the "ng-repeat" directive?

I use the ng-repeat directive.
I get the value "$index". In general, everything works, only the IDE does not like this use of "$index".
How to wean her to highlight this place in red?
By pressing Alt-Enter there is no option "disable inspection", I say right away.
NpmMY906.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
_
_ _, 2015-11-26
@summer_rain

Everything works by pure chance. As Nikolai correctly noted , interpolation is not needed there.
menuCtrl.isSelected($index)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question