title: angularjs ng-if for defined but not valued objects
body: <p>I have a controller that has a scope object named <code>asd</code> and,</p>
  
  <pre><code>var app = angular.module("app",[]);
  
  app.controller("appCtrl", function($scope){
          $scope.asd = {
              "name": ""
      }
  });
  </code></pre>
  
  <p>And I am using it in html code with <code>ng-if</code> like this.</p>
  
  <pre><code>&lt;div ng-app="app"&gt;
    &lt;div ng-controller="appCtrl"&gt;
       &lt;p ng-if="asd.name"&gt;
           Defined {{asd.name}}
       &lt;/p&gt;
       &lt;p ng-if="!asd.name"&gt;
           Non Defined
       &lt;/p&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This code writes <code>Non Defined</code> but it defined. <a href="https://jsfiddle.net/rwty77nk/" rel="nofollow noreferrer">Demo</a></p>
  
  <p>Does ng-if looks for object value? How can I use defined property of an object?</p>