ngShow directive

The ngShow directive changes the visibility of an element based on its display property:

<div ng-show="cars.length > 0">
<tr ng-class="{selected: car.selected}" ng-repeat="car in cars">
<input type="checkbox" ngmodel="
car.selected" />
<td><span ng-bind="car.plate"></span></td>
<td><span ng-bind="car.color"></span></td>
<td><span ng-bind="car.entrance"></span></td>
<div ng-hide="cars.length > 0">
The parking lot is empty

Depending on the implementation, you can use the complementary ngHide directive of ngShow.
Related Tutorial
Follow Us #
Contents +