Hi Sandra,
This is a use case (scanning modern applications) that the ZAP devs have recognized as "problematic".
One thing that might be of interest in your case is the "FrontEndScanner".
Disclaimer: I have been working on this last summer, it is the addon that (hopefully one day) will solve this!
The idea is to inject a piece of JS code alongside the application to the browser.
This allows you to run scripts to interact with (at least read from) the application state, and report things back to ZAP.
This is still a work-in-progress, so consider this as an "experimental" addon, and that means it is not yet available on ZAP's marketplace...
There are
some related issues if you are interested by the project, one is about integrating with the HUD btw!
If you are willing to try this out to test your application, I can give you a hand: it's highly valuable to get some "real world" use case on this.
Cheers,