how can I use conditions in templates when i want to compare with some
how can I use conditions in templates when i want to compare with some data? for example something like this
{% if vendor == 'vendor' %}
Answers (4)
3
You are using Jquery Template then use in this sample.
- {{if $data.str1=='abc' && c$data.str2=='def'}}
-
- {{/if}}
1
Thank you all
1
If you are trying this in angular then here is the code.
- <div *ngIf = "vendorProperty === 'vendor' ">
- </div>