We need to create an object which is accessible from the controller and widgets. Rather like how we can currently access the map object. Could anybody shed light on how this can be done?
Best way to do this is with a singleton. I answered a similar question here: https://github.com/cmv/cmv-app/issues/413
This will be coming out of the box in CMV soon.
We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.