Skip to content

Instantly share code, notes, and snippets.

@pranav7
Last active April 5, 2016 06:58
Show Gist options
  • Save pranav7/10827e31726610d5d82e to your computer and use it in GitHub Desktop.
Save pranav7/10827e31726610d5d82e to your computer and use it in GitHub Desktop.

Last element flag in ngRepeat

$last is what does the trick for you.

%span{ ng: { repeat: "something in vm.somethings" } }
%span {{ something.key }} {{ something.value }}
%span{ ng: { hide: "$last" }} -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment