can-observe-info

3.0.0-pre.7 • Public • Published

can-observe-info

Build Status

Core observable indicators

Usage

ES6 use

With StealJS, you can import this module directly in a template that is autorendered:

import plugin from 'can-observe-info';

CommonJS use

Use require to load can-observe-info and everything else needed to create a template that uses can-observe-info:

var plugin = require("can-observe-info");

AMD use

Configure the can and jquery paths and the can-observe-info package:

<script src="require.js"></script>
<script>
	require.config({
	    paths: {
	        "jquery": "node_modules/jquery/dist/jquery",
	        "can": "node_modules/canjs/dist/amd/can"
	    },
	    packages: [{
		    	name: 'can-observe-info',
		    	location: 'node_modules/can-observe-info/dist/amd',
		    	main: 'lib/can-observe-info'
	    }]
	});
	require(["main-amd"], function(){});
</script>

Standalone use

Load the global version of the plugin:

<script src='./node_modules/can-observe-info/dist/global/can-observe-info.js'></script>

Contributing

Making a Build

To make a build of the distributables into dist/ in the cloned repository run

npm install
node build

Running the tests

Tests can run in the browser by opening a webserver and visiting the test.html page. Automated tests that run the tests from the command line in Firefox can be run with

npm test

Package Sidebar

Install

npm i can-observe-info

Homepage

canjs.com

Weekly Downloads

8

Version

3.0.0-pre.7

License

none

Last publish

Collaborators

  • justinbmeyer
  • matthewp