SyntaxFix
Write A Post
Hire A Developer
Questions
Corrected:
HTML
<p ng-show="getFooUndef(foo)">Show this if $scope.foo === undefined</p>
JS
$scope.foo = undefined; $scope.getFooUndef = function(foo){ return ( typeof foo === 'undefined' ); }
Fiddle: http://jsfiddle.net/oakley349/vtcff0w5/1/