Is there a way to use ng-if to test if a variable is defined, not just if it\'s truthy?
ng-if
In the example below (live demo), the HTML displays a shipping cost
You can still use angular.isDefined()
You just need to set
$rootScope.angular = angular;
in the "run" phase.
See update plunkr: http://plnkr.co/edit/h4ET5dJt3e12MUAXy1mS?p=preview