-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose FastBoot service #79
Comments
Would this be a service in core Ember or in the fastboot addon? Because I can imagine a lot of addons that want to check isFastBoot without forcing a dependency on the fastboot addon. |
@ef4: In the FastBoot addon. I'm thinking about proposing an "optional" flag for service injections so they don't blow up if not available: fastboot: inject({ optional: true }) |
Optional injection would be great. |
I like the idea of a service, but I believe we will still need something available at module eval time (service is only useful at runtime from an object instantiated by the container). |
@rwjblue Can you say more about the evaluation-time use case? |
I guess it would make sense to have a |
I wanted to jot down some thoughts about how we expose FastBoot functionality and additional data into Ember apps. The idea is pretty simple: expose a
fastboot
service that can house whatever APIs we need to expose to app and addon developers over time.fastboot
ServiceInject it like any service:
Environment Detection
Cookies
Cookies sent by the requester's browser.
Headers
Headers attached to the HTTP request for this route.
The text was updated successfully, but these errors were encountered: