Hacker News new | past | comments | ask | show | jobs | submit login

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



Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: