0

So I have following code:

div(ng-repeat="item in list")
    div(class="({{item.note_type}} == 1)?\"critical\":\"\"")

Is it possible to have the If?: inside html combined with AngularJS?

Rendy
  • 5,572
  • 15
  • 52
  • 95
  • 1
    ON my side such an expression work perfect:`ng-class="event.IsHoliday?'event-text-holiday':'event-leave-status-'+event.Status"` – mihai Jul 26 '16 at 09:57
  • 1
    Might be helpful :http://stackoverflow.com/questions/16584346/angularjs-if-then-else-construction-in-expression – Ankit Jul 26 '16 at 09:59
  • Many thanks both! I am a beginner in AngularJS too :) – Rendy Jul 26 '16 at 09:59

0 Answers0