How counterController work inside of listview?

Resolved

Hi,
I have created an app that fetches data from API. I have two pages [Home, MyCard]. Inside of Home page, I fetched a list of products from API. it has a button to add the product to the Card.
Inside the MyCard page, I fetched a list of products that were added by the user. Inside each product list on the Card page, I added a counter widget as a component to increment the number of products.

I used code expression to multiply [price * counterValue]. the price is get from API. But I am not able to get the state of the counterComponent.

I want that when the user presses the counter it should increase the the total.

[total = price * counterValue ]

But I did not succeed, can anyone help me ?

thanks

2
3 replies