(private service: AuthService)
| 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 | |
| 53 | describe('usage in component to handle UI interaction', () => { |