ng-navigation
v0.1.3
Published
Easily navigate between pages of your app
Downloads
4
Maintainers
Readme
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-navigation
Basic 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 [email protected]:davidvuong/ngNavigation.git
cd ngNavigation/
npm install
Build, run tests and serve examples:
grunt build
grunt test
node app.js && open http://localhost:3000