I have a view (View1) which sets a variable needed by the view (View2) it navigates to. The user can go back to View1 and select a button to change the variable, then click submit to go to View2 again.
View2 calls an OData service in its onInit() method, and uses this variable as part of the call.
How do I ensure View2 is always performing this function every time it is navigated to? I tried doing .destroy() but that removes the ID and it can't be reused by View1.