title: Injecting class name and toggling class name Angular
body: <p>I am aware that in angular you can do something like this:</p>
  
  <pre><code>&lt;div ng-class="{myClassName: myCondition}"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>and Angular will add 'myClassName' to the class attribute if the condition is true.</p>
  
  <p>I am also aware that:</p>
  
  <pre><code>&lt;div ng-class="myClassName"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>will evaluate my 'myClassName' scope value and add it to the element's class argument.</p>
  
  <p>Is there a way to do both of these at the same time on an element? If so, how?</p>