Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { runEffects } from '@ngrx/effects';
import { PlayerEffects } from './player';
import { SearchEffects } from './search';
import { TracklistEffects } from './tracklists';
import { UserEffects } from './users';
export const EFFECTS_PROVIDERS = runEffects(
PlayerEffects,
SearchEffects,
TracklistEffects,
UserEffects
);
* based application.
*
* Source: https://github.com/ngrx/store/blob/master/src/ng2.ts#L43-L69
*/
provideStore(reducer),
/**
* runEffects configures all providers for @ngrx/effects. Observables decorated
* as an @Effect() within the supplied services will ultimately be merged,
* with output of relevant (registered as effects) actions being
* dispatched into your application store. Any side-effects in
* your application should be registered as effects.
*
* Source: https://github.com/ngrx/effects/blob/master/lib/run-effects.ts#L8-L20
*/
runEffects(effects),
/**
* provideRouter sets up all of the providers for @angular/router. It accepts
* an array of routes and a location strategy. By default, it will use
* `PathLocationStrategy`.
*/
provideRouter(routes),
/**
* Make router directives available to all components
*/
{ provide: PLATFORM_DIRECTIVES, useValue: [ROUTER_DIRECTIVES], multi: true },
/**
* Override the default location strategy with `HashLocationStrategy`
*/