You can use ngShow.
<li ng-show="!events.length">No events</li>
See example.
Or you can use ngHide
<li ng-hide="events.length">No events</li>
See example.
For object you can test Object.keys.
More Related Contents:
- ng-repeat finish event
- Way to ng-repeat defined number of times instead of repeating over array?
- How to filter multiple values (OR operation) in angularJS
- how to split the ng-repeat data with three columns using bootstrap
- How to improve performance of ngRepeat over a huge dataset (angular.js)?
- AngularJS multiple filter with custom filter function
- orderBy multiple fields in Angular
- AngularJS – how to get an ngRepeat filtered result reference
- angular ng-repeat in reverse
- Angular – Can’t make ng-repeat orderBy work
- ngRepeat Filter by deep property
- How To bind data using TypeScript Controller & Angular Js
- Access index of the parent ng-repeat from child ng-repeat
- Dynamic form name attribute in Angularjs
- Skip ng-repeat JSON ordering in Angular JS
- Understanding the ngRepeat ‘track by’ expression
- Angular passing scope to ng-include
- Angular.js ng-repeat across multiple elements
- Angular.js ng-repeat filter by property having one of multiple values (OR of values)
- How to generates dynamically ng-model=”my_{{$index}}” with ng-repeat in AngularJS?
- AngularJS ng-click stopPropagation
- How to create separate AngularJS controller files?
- What is browser.ignoreSynchronization in protractor?
- Correct use for angular-translate in controllers
- AngularJs and Facebook Comments
- Angularjs how to upload multipart form data and a file?
- Tell screen reader that page has changed in Backbone/Angular single-page app
- how to fix 404 warnings for images during karma unit testing
- How do I pass multiple attributes into an Angular.js attribute directive?
- Globally defined AngularJS controllers and encapsulation