UNPKG

can-globals

Version:

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

5 lines (4 loc) 168 B
<!doctype html> <title>can-globals demo</title> <p>Open your console and type "globals"</p> <script src="node_modules/steal/steal.js" main="can-globals/demo"></script>