npm install navigator-js
|2||downloads in the last month|
|Version||0.4.2 last updated 4 months ago|
|Dependencies||grunt, grunt-contrib-uglify, grunt-contrib-watch, grunt-contrib-copy, grunt-bump|
NavigatorJS is the ultimate solution to show/hide your dom-elements based on a single state string. This library was created to take away your pains when it comes to navigating your (single page) application between different views or application states. It provides ways to deal with (asynchronous) transitions between states without bugging you with the tedious parts. To sum up of the library's features:
- Total control over synchronous and asynchronous visual transitions
- Just-in-Time initalization of view components
- DebugConsole to show exactly which elements are uninitialized, hidden or visible
- Support for dynamic range elements and lists, like gallery items
- Nested states, move complete parts of you application and they still work
- Flow control through state validation, both synchronous and asynchronous
- Optional integration with Backbone
And many more...
NavigatorJS is mostly ported from the popular AS3 library Navigator-as3, created by @epologee. Most work was done by Paul Tondeur, later joined by Michiel van der Ros. They are both members of the Bigger Boat freelance collective in Amsterdam.
Running the specs
You can run the test locally by installing Ruby 2.x.x. For more information on how to install Ruby check the Rbenv installation guide.
When you have Ruby and Bundler installed run this command to install all dependencies:
$ bundle install
To see the tests in a browser run this command:
$ bundle exec rake jasmine
Then open your browser with this url; http://localhost:8888/
Please refer to the examples, tests and Navigator-Injector-Backbone-Command-TodoMVC example for details of how this library can be used.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request from Github