Last active
August 29, 2015 14:14
-
-
Save abuiles/2a83a73b4b6307f8279c to your computer and use it in GitHub Desktop.
This file contains 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
// En el initializer | |
// ... | |
application.inject('route', 'stripeService', 'service:stripe'); | |
// ... | |
var service = container.lookup('service:stripe'); | |
service.set('config', config); | |
// ya después puedes cambiar simplemente el valor en el servicio... | |
service.set('config.foo', 'newFoo'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment