how to check for null with a ng-if values in a view with angularjs?
See the correct way with your example:
<div ng-if="!test.view">1</div>
<div ng-if="!!test.view">2</div>
Regards, Nicholls
You should check for !test
, here is a fiddle showing that.
<span ng-if="!test">null</span>