Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Commit

Permalink
Finish 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
poteto committed Aug 21, 2015
2 parents a1fa783 + ccbfc70 commit 1552f76
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,13 @@ export default Ember.Route.extend({

```hbs
{{#bread-crumbs outputStyle='bootstrap" linkable=true as |component cow|}}
{{#if cow.title}}
{{cow.title}}
{{else}}
{{cow.name}} ({{cow.age}}) says {{cow.says}}
{{/if}}
{{bread-crumb route=cow breadCrumbs=component}}
{{#if cow.title}}
{{cow.title}}
{{else}}
{{cow.name}} ({{cow.age}}) says {{cow.says}}
{{/if}}
{{/bread-crumb}}
{{/bread-crumbs}}
```

Expand Down
2 changes: 1 addition & 1 deletion addon/components/bread-crumbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default Component.extend({
currentUrl: computed.readOnly('applicationRoute.router.url'),
currentRouteName: computed.readOnly('applicationRoute.controller.currentRouteName'),

routeHierarchy: computed('currentUrl', 'reverse', {
routeHierarchy: computed('currentUrl', 'currentRouteName', 'reverse', {
get() {
const currentRouteName = getWithDefault(this, 'currentRouteName', false);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-crumbly",
"version": "0.2.1",
"version": "0.2.2",
"description": "Declarative breadcrumb navigation for Ember apps",
"directories": {
"doc": "doc",
Expand Down

0 comments on commit 1552f76

Please sign in to comment.