javascriptangularjsangular-ng-if

Angular ng-if="" with multiple arguments


I am trying to get started on angular development. And after reviewing the documentation some questions persist. How do i best write a ng-if with multiple arguments corresponding to

if( a && b) or if( a || b )


Solution

  • It is possible.

    <span ng-if="checked && checked2">
      I'm removed when the checkbox is unchecked.
    </span>
    

    http://plnkr.co/edit/UKNoaaJX5KG3J7AswhLV?p=preview