Skip to content

Register epics in Application #40

Closed
@rubiktubik

Description

@rubiktubik

Hi,

you wrote a Tutorial on how to register epics in a application but it seems not to work anymore.

I tried to reproduce the example and it starts with this error:
grafik

ActionObservable needs an argument T.

How can i use and register epics in my app.module? Especially with more then one epic.

export class AppModule {
  constructor(
    private ngRedux: NgRedux<IAppState>,
    private epics: SessionEpics,
  ) {
    const middleware = [createEpicMiddleware(this.epics.login)];
    ngRedux.configureStore(rootReducer, {}, middleware);
  }
}

Is this approach up-to-date in Version 9+?

Regards
rubiktubik

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions