A mock routing observable. Useful for testing.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.gitignore
.jshintrc
.npmignore
.npmrc
.travis.yml
.yo-rc.json
CONTRIBUTING.md
LICENSE
README.md
can-route-mock-test.js
can-route-mock.js
can-route-mock.md
index.html
package.json
test.html

README.md

can-route-mock

Build Status

a fake url for routing

Usage

ES6 use

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

import plugin from 'can-route-mock';

CommonJS use

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

var plugin = require("can-route-mock");

Standalone use

Load the global version of the plugin:

<script src='./node_modules/can-route-mock/dist/global/can-route-mock.js'></script>