MCPcopy
hub / github.com/rx-angular/rx-angular / constructor

Method constructor

libs/state/actions/src/lib/docs.spec.ts:46–50  ·  view source on GitHub ↗
(private service: AuthService)

Source from the content-addressed store, hash-verified

44 actions = rxActions<{ login: { username: string; password: string } }>();
45
46 constructor(private service: AuthService) {
47 this.actions.login$
48 .pipe(exhaustMap((credentials) => this.service.login(credentials)))
49 .subscribe();
50 }
51}
52
53describe('usage in component to handle UI interaction', () => {

Callers

nothing calls this directly

Calls 2

subscribeMethod · 0.80
loginMethod · 0.45

Tested by

no test coverage detected