Negation in AngularJS expression. -


i have 1 noob question angularjs expressions. want check in expression (ngif in case) undefined. eg:

data-ng-if="typeof obj.property == 'undefined'"  

how can write expression check this? grateful ideas , recommendations.

best regards.

an undefined property falsy, don't have check unless care undefined. check be

data-ng-if="!user.email" 

that evaluate true unless user object had property email non-falsy value (0,'',undefined false). maybe after.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -