title: How to check type of variable inside ng-class?
body: <pre><code>&lt;div ng-class="{
      'undefined' : typeof object.property === 'undefined',
      'edit-active' : open == true
    }"&gt; 
        {{ object.property }} 
  &lt;/div&gt;
  </code></pre>
  
  <p>This gives me a syntax error:</p>
  
  <pre><code>Error: [$parse:syntax] Syntax Error: Token 'object.property' is unexpected, expecting [}]
  </code></pre>
  
  <p>How can I check if <code>object.property</code> is defined?</p>
  
  <p><strong>Note: I am using angular 1.2.28.</strong></p>