0

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?

-1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.