0.1.3 • Published 9 years ago

ng-navigation v0.1.3

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

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