I'm trying to display image one when clicks are < 5. image two when clicks are < 10. Struggling to correctly use *ngIf. Can anyone help me or point me in the right direction please?
html
<div class="test" (click) = "testFunction()"> </div>
<img src="assets/one.jpg">
<img src="assets/two.png">
<img src="assets/three.jpg">
{{clicks}}
<button (click) = "clearFunction()"> clear! </button>
ts
clicks: number = 0;
testFunction() {
this.clicks += 1;
}