0.1.3 • Published 10 years ago
ng-navigation v0.1.3
ngNavigation
ngNavigation a zero dependency AngularJS service that provides a simple way to navigate between different pages within your application.
Install
# via bower:
bower install ngNavigation
# via npm:
npm install ng-navigationBasic usage
Specify ngNavigation as a dependency and call .init in your app.config.
Here's an example:
var app = angular.module('ExampleApp', [
    'ngNavigation'
]);
app.config(function (Navigation) {
    Navigation.init();  // Idempotent operation.
});
app.controller('AppCtrl', function ($scope, Navigation) {
    Navigation.routeTo('/settings?tab=accounts');
});For more information, checkout the documentation.
Development
Clone and install dependencies:
git clone git@github.com:davidvuong/ngNavigation.git
cd ngNavigation/
npm installBuild, run tests and serve examples:
grunt build
grunt test
node app.js && open http://localhost:3000