SyntaxFix
Write A Post
Hire A Developer
Questions
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>
For object you can test Object.keys.