Skip to content

Instantly share code, notes, and snippets.

@wulymammoth
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wulymammoth/81bde16bf33b383abe15 to your computer and use it in GitHub Desktop.
Save wulymammoth/81bde16bf33b383abe15 to your computer and use it in GitHub Desktop.
// list
var list = [
{
'A': [
'Ari Lerner',
'Abe Linc'
]
},
{
'D': [
'David Wu'
]
},
{
'Z': [
'Zen Master',
'Ziff Davis'
]
}
];
// template
<ul>
<div
class="item item-divider"
ng-repeat="letter in list">
{{ Object.keys(letter)[0] }}
<li ng-repeat="contact in letter">
{{ contact }}
</li>
</div>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment