I\'m trying to set as default the first occurrence in this example: plunkr
getting the following error:
Unhandle
Check out this plunkr.
When you're binding to variables, you need to use the brackets. Also, you use the hashtag when you want to get references to elements in your html, not for declaring variables inside of templates like that.
...
Edit: Thanks to Christopher Moore: Angular exposes the following local variables:
index
first
last
even
odd