<ul> <li ng-repeat="name in names">{{name}}</li> <li ui-if="!names.length">There are no names in the list</li> </ul>