vendredi 4 septembre 2015

Condition in jQuery Template

I am trying to check if condition in jquery template and below is my code

{{each(hrFacetName, hrFacet) docs}}
   {{if $hrFacet.TQC}}
       <div class="searchResultCandidateDiv" style = "background-color:#c1f0c1">
   {{else}}
        <div class="searchResultCandidateDiv">
   {{/if}}
{{/each}}

Getting error $hrfacet is not defined.. it returns a boolean. Any ideas??

Aucun commentaire:

Enregistrer un commentaire