vendredi 25 septembre 2015

If condition using angular js

I have a value {{category}} which is to printed using angular js. Based on the value I have to change the contents of div.

if {{category}} = "aa" then <div>aa</div>
if {{category}} = "bb" then <div>bb</div>

how is this possible.

Aucun commentaire:

Enregistrer un commentaire