Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4830

Where do Fastboot initializers go?

$
0
0

@rondale_sc wrote:

Mostly documenting for future travelers:

I needed to run an initializer only in FastBoot land. Rather than guard for FastBoot I want to use a FB initializer.

In an addon you can do so by adding your initializer (in my case an instance-initializer) to:

<root-of-addon>/fastboot/addon/instance-initializers/<name-of-your-initializer>

and in an application:

<root-of-app>/fastboot/instance-initializers/<name-of-your-initializer>

If you’d like to see more detail on this please referr to this EmberCLI ticket by @kratiahuja

Cheers! :beers:

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4830

Trending Articles