ng-navigation

0.1.3 • Public • Published

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

Package Sidebar

Install

npm i ng-navigation

Weekly Downloads

0

Version

0.1.3

License

MIT

Last publish

Collaborators

  • truetuna