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 )
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 )
It is possible.
<span ng-if="checked && checked2">
I'm removed when the checkbox is unchecked.
</span>
http://plnkr.co/edit/UKNoaaJX5KG3J7AswhLV?p=preview
For people looking to do if statements with multiple 'or' values.
<div ng-if="::(a || b || c || d || e || f)"><div>
Yes, it's possible. for example checkout:
<div class="singleMatch" ng-if="match.date | date:'ddMMyyyy' === main.date && match.team1.code === main.team1code && match.team2.code === main.team2code">
//Do something here
</div>