Close/Hide a modal opened view by Javascript
We have an modal opened view in our vuforia application with a button on top.
When we press this button we want to close the modal view and navigate to another main view.
Example:
MainMenuView is open
-> Navigation to a 3D-Model view
-> Click on a help button which opens a 2D Help or Informationview as modal
-> Click on a button inside this modal view should close the modal view and navigate back on the mainmenu.
On another post here in the community i found a function of JavaScript which seems to do what I want
"app-fn-hide-modal" but I can't figure out on which scope this is called and with which kind of parameters.
Maybe in this way?
$scope.app.fn.hide-modal('view-1');
it doesn't seem to work.
Can anyone help here?
Javascript documentation for vuforia seems like a pain for me 😞

