0.1.18 • Published 9 years ago

react-services-extras v0.1.18

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

react-services-extras

Extra services for react-services to simplify common tasks.

Enabling extra services

Install react-services-extras with

npm install react-services-extras

Require any services you need with

require("react-services-extras/NavService")

Available services

NavService

For implementing navigation for your single page application.

#path

Up to date path for the current URL. Defaults to current document.location.pathname when service is first required. Subscribe to this in your router component.

#navigate

Navigate to a new URL. If pushState is unavailable, document.location.href is overwritten instead. Handles relative URLs.

#title

The current title of the page. Fetched from the <title> element.

#setTitle

Update the current title of the page. Sets the content of the <title> element.

JQueryService

Allows you to access jQuery.

#$

Polls typeof $ until jQuery becomes available. If unavailable, returns null.

DOMService

Allows you to access DOM elements.

#document

Returns the document object in browser.

#window

Returns the window object in browser.

#history

Returns the history object in browser.

0.1.18

9 years ago

0.1.17

9 years ago

0.1.16

9 years ago

0.1.15

9 years ago

0.1.14

9 years ago

0.1.13

10 years ago

0.1.12

10 years ago

0.1.11

10 years ago

0.1.10

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago