how to check for null with a ng-if values in a view with angularjs? April 2, 2023 by Tarik You should check for !test, here is a fiddle showing that. <span ng-if="!test">null</span>