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.
- Host: GitHub
- URL: https://github.com/yeojz/angular-crumbs
- Owner: yeojz
- License: mit
- Created: 2014-08-02T04:58:06.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-04T04:14:48.000Z (about 11 years ago)
- Last Synced: 2024-12-25T21:09:39.202Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 172 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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:
-
{{crumbs.title}}
{{crumbs.title}}