The issue is that I can’t find a way to make view communicate between each other. I’ve tried creating a “Main view” that list the section, and when the users clicks on a section, he is taken to another view (for example, the “Surface” view).
But ! I’m then unable to get the data from each section, and centralize it in my main view. And since we can’t access another view’s properties, I’m stuck here.
In the end I worked around this by using a “SPA approach” (demo here), meaning using custom states to track the active tab and hide/show groups based on this, but it’s way less fluid than the views (and animations are not working on mobile, since there JS based).
Am I missing something ? Or is there nothing we can do for now ?
I think it’s possible with properties of views. All your views should have all these properties :
Furniture
Location
Rent
Surface
Number of rooms
Number of bedrooms
And you pass them back and forth between views every time.
For example :
Your alert creation starts with all these fields empty.
You go to the “furniture” tab, passing 0 data (if the main view properties are all null, meaning the alert creation has just started)
You select whether or not the appartement needs to be furnished or not, then you go back to your main view, passing “yes” for furniture.
You are back on your main view.
Then you go to the “Location” view, and you pass “yes” of furniture. When going back to the main view, you pass the data “yes” of furniture + the location
Yep, I tried something similar, but I think what I did differently is that I tried to centralize everything on the main view (which therefore gets reset every time).
I didn’t try to pass all the data each time between views like you say.
I’m going to give it a try, I’ll let you know if it works !