I've encountered a puzzling situation with the function in my component :
public limit: number = 3
public logLimit(limit) {
console.log(limit)
}
and in my template :
<div (click)="logLimit(--limit)">Decrease and log limit</div>
Strangely, when I click on the div, the logged limit remains at 3. This leaves me wondering why the --
operator didn't take effect as expected?