I have to call a function on $last in ng-repeat, if I use,
div(ng-repeat="note in notes")
li: {{note}}
{{$last ? 'true' : 'false' }}
It prints false only on last li element, but for the same if I call a function instead of 'true', like below
div(ng-repeat="note in notes")
li: {{note}}
{{$last ? update() : 'false' }}
the function is called for each loop.
For your information, I had tried "&&" kind of solution given in this link
{{$last && update() || '' }}
also, but not working.