Skip to content

Commit e58c9c4

Browse files
rwjbluemuziejus
andauthored
Update guides/release/services/services.md
Co-Authored-By: muziejus <[email protected]>
1 parent 8329e4b commit e58c9c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

guides/release/services/services.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ import { getOwner } from '@ember/application';
9797

9898
export default class CartContentsComponent extends Component {
9999
//will load the service in file /app/services/shopping-cart.js
100-
cart: computed(function() {
100+
@computed
101+
get cart() {
101102
return getOwner(this).lookup('service:shopping-cart');
102103
})
103104
};

0 commit comments

Comments
 (0)