An open API service indexing awesome lists of open source software.

https://github.com/yeojz/angular-crumbs

AngularJS Factory Module which generates a breadcrumb trail for your current route.
https://github.com/yeojz/angular-crumbs

Last synced: 5 months ago
JSON representation

AngularJS Factory Module which generates a breadcrumb trail for your current route.

Awesome Lists containing this project

README

          

angular-crumbs
==============

Angular-crumbs is a factory module for [AngularJS](http://angularjs.org) which generates a breadcrumb trail for your current route.

# Usage

We use [bower](http://twitter.github.com/bower/) for dependency management. Add

dependencies: {
"angular-crumbs"": "latest"
}

To your `bower.json` file. Then run

bower install

This will copy the ui-date files into your `components` folder, along with its dependencies.

Alternatively you can run

bower install angular-crumbs --save

Load the script files in your application:

Add the date module as a dependency to your application module:

var myAppModule = angular.module('MyApp', ['angularCrumbs'])

Example BreadCrumb Factory usage:

'use strict';

angular.module('MyApp')
.controller('ExampleController',
['$scope', '$rootScope', 'BreadcrumbsFactory',
function ($scope, $rootScope, BreadcrumbsFactory) {

$scope.breadcrumbs = BreadcrumbsFactory.get();

}]);

Example HTML: