Giter VIP home page Giter VIP logo

Comments (6)

ef4 avatar ef4 commented on May 12, 2024

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.

from ember-cli-fastboot.

tomdale avatar tomdale commented on May 12, 2024

@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 })

from ember-cli-fastboot.

ef4 avatar ef4 commented on May 12, 2024

Optional injection would be great.

from ember-cli-fastboot.

rwjblue avatar rwjblue commented on May 12, 2024

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).

from ember-cli-fastboot.

tomdale avatar tomdale commented on May 12, 2024

@rwjblue Can you say more about the evaluation-time use case?

from ember-cli-fastboot.

marcoow avatar marcoow commented on May 12, 2024

I guess it would make sense to have a cookies service that abstract all interactions with cookies (as sketched in #120) so that the app can always use the same mechanism to read/write cookies regardless of whether it's running in the browser or in the fastboot env?

from ember-cli-fastboot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.