title: How to change Class of a div using on click of using ngClass
body: <p>I have a button tag, upon clicking on what, it should change the class of a div tag.I'm using <code>ngFor</code>, so each row should be treated individually.</p>
  
  <p>Here's the snippet of my code and what I want to do.</p>
  
  <pre><code>  &lt;div *ngFor="let item of users"&gt;
    &lt;button class="fas fa-angle-up"&gt;&lt;/button&gt;
    &lt;strong&gt;NAME &lt;/strong&gt;{{item.attribute.name}}
    &lt;div class="pf-m-expanded"&gt;Some Content Here&lt;/div&gt; &lt;!--This is the class that has to toggle upon clicking that **button**&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>What I want to do is upon clicking the button, I should be able to toggle(remove and activate class) <code>pf-m-expanded</code>.
  And since it is a <code>*ngFor</code>, It should <strong>treat each row individually</strong>.</p>