0.1.2 • Published 5 years ago

can-define-singleton v0.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

can-define-singleton

Build Status

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>
0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.0

5 years ago