title: How to write a date | date:"MM" inside an ng-class?
body: <p>I want to add the class <code>month</code> when <code>agent.createdAt | date:"MM"</code> equals to <code>todaymonth</code> (the  code is inside a directive):</p>
  
  <pre><code>'&lt;td ng-class="{\'month\': ???==todaymonth}"&gt;&lt;span&gt;{{todaymonth}}&lt;/span&gt;{{agent.createdAt | date:\"yyyy-MM-dd HH:mm\"}}&lt;/td&gt;'+
  </code></pre>
  
  <p>I don't know how to add the <code>agent.createdAt | date:"MM"</code>. If I do this:</p>
  
  <p><code>{\'month\': agent.createdAt | date:\"MM\"==todaymonth}</code> Throws an unexpected expression error same with <code>{\'month\': (agent.createdAt | date:\"MM\")==todaymonth}</code></p>
  
  <p>How to do this correctly?</p>