Skip to content

Instantly share code, notes, and snippets.

import { Injectable } from "@angular/core";
import { Store } from "@ngrx/store";
import { StoreService } from "./store-service.ts"
import { myReducer, IMyState, } from "./reducer.ts"
@Injectable()
export class SomeService {
constructor(private store: Store<any>, storeService: StoreService) {
// Add the service specific reducers to the set of existing reducers.
storeService.addReducers({myReducer});