This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
// Here is where the injection of the service happens. | |
// Ember.inject.service takes an argument that is the name of the | |
// file of the service that you created. | |
// If your variable name matches the service name, you would not | |
// need to add the argument at all. | |
// For example: shopping-cart: Ember.inject.service() | |
cart: Ember.inject.service('shopping-cart'), |