title: How to set ng-attr-title using ternary operator in Angularjs?
body: <p>I am very new to Angularjs. I want to set a value for <strong>title</strong> attribute, based on a boolean variable.</p>
  
  <p>Sample code attached here.</p>
  
  <pre><code> &lt;tr ng-repeat="doc in $data" ng-class="{{doc.is_today}} ? 'highlight' : ''" 
                                          ng-attr-title="({{doc.is_today}}) ? 'Today' : ''"&gt; 
       &lt;td&gt;1&lt;/td&gt;
       &lt;td&gt;2&lt;/td&gt;
       &lt;td&gt;3&lt;/td&gt;
       &lt;td&gt;4&lt;/td&gt;
       &lt;td&gt;5&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>Thanks,</p>