Zero data by date


So I have a variable that needs to be zeroed( 0 ) after the date changes.
What would be the easyest way to do so, my brain just doesn’t catch it.
And also the variable is in the side menu(app.components.ts)

That is an imperative concept, whereas Ionic apps are written reactively. Can you describe the goal in more broad terms?