To show or hide a variable if null in AngularJs, you can use the snippet below.
Sample AngularJs
<div ng-show="myVariable == null"></div>
or
<div ng-show="myvar != null"></div>
To show or hide a variable if null in AngularJs, you can use the snippet below.
<div ng-show="myVariable == null"></div>
or
<div ng-show="myvar != null"></div>