0.1.2 • Published 7 years ago
can-define-singleton v0.1.2
can-define-singleton
Singleton plugin for can-define
Usage
ES6 use
With StealJS, you can import this module directly in a template that is autorendered:
import plugin from 'can-define-singleton';CommonJS use
Use require to load can-define-singleton and everything else
needed to create a template that uses can-define-singleton:
var plugin = require("can-define-singleton");Standalone use
Load the global version of the plugin:
<script src='./node_modules/can-define-singleton/dist/global/can-define-singleton.js'></script>