16 ms·
Best approach would be to use the 'ui-if' directive from angular-ui <ul> <li ng-repeat="name in names">{{name}}</li> <li ui-if="!names.length">There
by pieceofpeace 14y ago
Best approach would be to use the 'ui-if' directive from angular-ui
<ul>
<li ng-repeat="name in names">{{name}}</li>
<li ui-if="!names.length">There are no names in the list</li>
</ul>
: http://angular-ui.github.com/#directives-if http://angular-ui.github.com/#directives-if