angular-breadcrumb requires ui-router in minimal version 0.2.0 (when the method $state.get was added).
$state.get
Download the production version or the development version.
Or download it with bower : open a terminal and run
bower install angular-breadcrumb
Include the js your web page:
<script src="[...]angular-breadcrumb[.min].js"></script>
Add dependency to your app module:
'ncy-angular-breadcrumb'
The module is now installed. It exposes the $breadcrumb service and the ncy-breadcrumb directive.
$breadcrumb
ncy-breadcrumb
Configure the ui-router (see the ui-router project).
Define a ncyBreadcrumb.label property to each states
ncyBreadcrumb.label
$stateProvider.state('home', { url: '/home', templateUrl: 'views/home.html', controller: 'HomeCtrl', ncyBreadcrumb: { label: 'Home page' } })
Use the directive ncy-breadcrumb
<div ncy-breadcrumb></div>
Let the magic begin !
See the API reference page for all the configuration options :
There was an error while loading. Please reload this page.