Below is simple html code, am trying to call function , bt its not getting fire ,,, is anyone know..
<div (click)="openPreview(modelvalue)">
<i class="icon-image-fui"></i>
{{modelvalue}}
</div>
<label (click)="donwload(modelvalue)">Download</label>
didnt apply any css class,,, usually should not happen
2
Answers
you’re trying to use Angular syntax in plain HTML Angular uses
(click)
to bind click events in its templates which will not work if you are not actually using Angular or if Angular is not properly set up in your project.