Skip to content

Commit

Permalink
Merge branch 'master' of github.com:KrisSiegel/msngr.js into 2.0.0
Browse files Browse the repository at this point in the history
Conflicts:
	README.md
  • Loading branch information
KrisSiegel committed May 31, 2015
2 parents 72b5112 + 8a57f80 commit efdbc4c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
msngr.js is a small library for facilitating communication between components through abstract messages within the same application be it server or client side. It also provides binding messages directly to DOM elements and even sending payloads between browser tabs / windows.

The following example shows how to bind a message to a click event of a DOM element while gathering up the values in the related inputs for payload delivery.

```HTML
<input type="text" name="Username" value="Kris" />
<input type="password" name="Password" value="hunter2" />
Expand All @@ -21,6 +22,11 @@ msngr("User", "Save")
});
```

## Getting msngr.js
If you want to use msngr.js on the server-side via npm simply install it via ```npm install msngr```.

If you want to use it within a web browser then either install via ```bower install msngr``` or manually download msngr.js or msngr.min.js file(s) from this repository.

## Would you like to know more?
While msngr.js isn't very large the documentation has been split up for easy reading.

Expand Down

0 comments on commit efdbc4c

Please sign in to comment.