Reputation: 569
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.
Upvotes: 0
Views: 81
Reputation: 3717
You can simply show
<div>{{category}}</div>
No need to check
Upvotes: 0