Id | 5 |Room | 6 |7 | |
---|---|---|
{{reservation.reservationId}} | 12 |{{getRoom(reservation.roomId).roomNumber}} | 13 |View | 14 |
angular-breadcrumb
is a module for AngularJS, which generates a breadcrumb for any page of your application. It is strongly based on the UI-router framework and its hierarchical tree of states.
Browse to the sample to see the example above working.
5 |Id | 7 |Number | 8 |Type | 9 |10 | | |
---|---|---|---|---|
{{item.roomId}} | 15 |{{item.roomNumber}} | 16 |{{item.type}} | 17 |View | 18 |Edit | 19 |
This app is a basic information system for hotel. Its main purpose is to illustrate how work the
4 | module angular-breadcrumb
in various situations.
Here is the state machine :
6 | ─ home (defined as prefix in the breadcrumb) 7 | ─ sample 8 | ─ booking (override his parent state to 'sample' in the breadcrumb) 9 | └── booking.day (use the angular date filter in label) 10 | └── booking.day.detail (open a popup, not displayed in breadcrumb) 11 | ─ room (override his parent state to 'sample' in the breadcrumb) 12 | └── room.detail (view included in root's view instead of parent's one, variable in breadcrumb label) 13 | └── room.detail.edit (allow to see the working parameterized link for parent 'room.detail')14 | 15 |
For more information, see the sample app's configuration.
16 |Welcome to the UI-Router Demo
' + 65 | 'Use the menu above to navigate. ' +
66 | 'Pay attention to the $state
and $stateParams
values below.
Click these links—Alice or ' + 68 | 'Bob—to see a url redirect in action.
' 69 | 70 | }) 71 | .state('about', { 72 | url: '/about', 73 | templateProvider: ['$timeout', function ($timeout) { 74 | return $timeout(function () { 75 | return 'UI-Router Resources
{{step.ncyBreadcrumbLabel}} | ' + 74 | '{{step.ncyBreadcrumbLink}} | ' + 75 | '