title: How can I use ng-if to check if the string contains others substrings?
body: <p>First, I want to use ng-if to check if the string contains others substring "#teamA" or "#teamB" like:</p>
  
  <pre><code>&lt;ion-item ng-if="msg.indexOf("#teamA") &gt; -1" class="teamA"&gt;            
      {{msg}}
  &lt;/ion-item&gt;
  &lt;ion-item ng-if="msg.indexOf("#teamB") &gt; -1" class="teamB"&gt;            
      {{msg}}
  &lt;/ion-item&gt;
  </code></pre>
  
  <p>This code is not working.
  Secondly, I want each {{msg}} to have different assigned class (teamA and teamB). Am I on the right way to do that (if my ng-if works)?</p>