I have this simple example which does update the Counter value in my HomePage class.
But in the html view:
<p>{{Counter}}</p>
this remains zero.
The method:
ondrag(event, item) {
let percent = event.getSlidingPercent();
if (percent === 1) {
event.close();
this.Counter--;
}
if (percent + 1 === 0) {
event.close();
this.Counter++;
}
}
works on my machine if i add logs for each if
Here is the code on plnkr: https://plnkr.co/edit/7Q4wDtZjIS1zBDsF0etS
Any suggestions?