diff --git a/addon/components/breadcrumbs-item.js b/addon/components/breadcrumbs-item.js index dac33a3..1fb0697 100644 --- a/addon/components/breadcrumbs-item.js +++ b/addon/components/breadcrumbs-item.js @@ -1,7 +1,6 @@ import Component from '@ember/component' import { inject as service } from '@ember/service' import layout from '../templates/components/breadcrumbs-item' -import { readOnly } from '@ember/object/computed' export default Component.extend({ /** @@ -15,11 +14,5 @@ export default Component.extend({ */ layout, - tagName: '', - - /** - * Computed - */ - - breadcrumbContainers: readOnly('breadcrumbsService.containers') + tagName: '' }) diff --git a/addon/templates/components/breadcrumbs-item.hbs b/addon/templates/components/breadcrumbs-item.hbs index 1b7c64a..769fe5b 100644 --- a/addon/templates/components/breadcrumbs-item.hbs +++ b/addon/templates/components/breadcrumbs-item.hbs @@ -1,4 +1,4 @@ -{{#each this.breadcrumbContainers as |container|}} +{{#each this.breadcrumbsService.containers as |container|}} {{#in-element container.element insertBefore=null}}
  • {{yield container.linkClass}}