Skip to content

troopjs/troopjs-route-hash

Repository files navigation

TroopJS Route-Hash

A Troop component which exposes an API through the hub to:

  1. Subscribe to a DOM element's hash changes (with the hub/route/change event).
  2. Set the DOM element's hash (by publishing hub/route/set).

Note that in this context, the only DOM element for which it makes sense to initialize this component is a window element.

Tests

  1. bower install
  2. npm install -g buster
  3. npm install buster-amd (yes, locally, without -g)
  4. buster-static
  5. Open your browser and go to the url provided by Buster.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published