Skip to content

davidvuong/ngNavigation

Repository files navigation

ngNavigation

Build Status Coverage Status Code Climate npm version Bower version

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 git@github.com:davidvuong/ngNavigation.git

cd ngNavigation/
npm install

Build, run tests and serve examples:

grunt build
grunt test

node app.js && open http://localhost:3000

About

A simple AngularJS service that helps you navigate between different pages in your app.

Resources

License

Stars

Watchers

Forks

Packages

No packages published