865105734e
Works by segmenting the currentRouteName from the router service and walking over each route in the current hierarchy to collect crumbs.
12 lines
300 B
JavaScript
12 lines
300 B
JavaScript
import Component from '@ember/component';
|
|
import { inject as service } from '@ember/service';
|
|
import { reads } from '@ember/object/computed';
|
|
|
|
export default Component.extend({
|
|
breadcrumbsService: service('breadcrumbs'),
|
|
|
|
tagName: '',
|
|
|
|
breadcrumbs: reads('breadcrumbsService.breadcrumbs'),
|
|
});
|