When working on my application using vue.js
, I am interested in finding the last repeated element within a v-for
directive. I understand that in angularjs
, there is a similar concept using the $last
loop variable in its ngRepeat directive:
<div ng-repeat="(key, value) in myObj">
<span ng-if="$last">Shows if it is the last loop element</span>
</div>
My question is whether there is an equivalent feature in vue.js
that I may not be aware of, or if I need to create my own logic for this purpose?