I have a scenario where One page contains 4 tabs. I want to share the parent ViewModel in all four tabs. what is the best way to do that?
Right now I have created by extending the parent ViewModel and On click of Icon on parent page it should check all the page values and store it.
You can see the above image will show what I want to achieve
I have Detail Page, Page A, Page B, Page C, and Page D. Details page ViewModel is extending in all four pages also I have added an event in the parent ViewModel which will trigger when you click on the home icon on the toolbar. I am not getting the event trigger in my child page and also getting the parent ViewModel variables null in the child tab page.
What is the best solution to handle such kind of scenarios? Thanks in advance !!!