can-define-singleton

v0.0.0
Singleton plugin for can-define
donejs-plugin

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>

Metadata

  • MIT
  • Whatever
  • Bitovi
  • released 12/17/2018

Downloads

Maintainers