This module provides a dependency injection container. Modules may define a key and specify a default value (which can be static, cached lazy, or dynamic lazy), but other code can set and reset the value as needed. There is also an event system, for alert
npm install can-globals



 
An environment agnostic container for global variables. Useful for testing and server-side rendering (SSR), typically used internally by CanJS.
Read the API docs on CanJS.com.
See the latest releases on GitHub.
The contribution guide has information on getting help, reporting bugs, developing locally, and more.