open-nomad/ui/app/components/app-breadcrumbs.js
Michael Lange 865105734e New breadcrumb service and component for describing breadcrumbs in routes
Works by segmenting the currentRouteName from the router service
and walking over each route in the current hierarchy to collect crumbs.
2018-07-06 11:12:10 -07:00

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'),
});