11 |
12 |
13 |
36 |
37 |
38 | Login State
39 |
40 | {{loginState$ | async | json}}
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/src/pages/signup/signup.page.ts:
--------------------------------------------------------------------------------
1 | import { ChangeDetectionStrategy, Component } from '@angular/core';
2 | import { FormBuilder, FormGroup, Validators } from '@angular/forms';
3 |
4 | import { Store } from '@ngrx/store';
5 |
6 | import * as authActions from '../../app/auth/auth.action';
7 | import * as FromAuthSelector from '../../app/auth/auth.selector';
8 | import * as fromRoot from '../../reducers';
9 |
10 | @Component({
11 | changeDetection: ChangeDetectionStrategy.OnPush,
12 | templateUrl: 'signup.page.html',
13 | })
14 | export class SignupPage {
15 | // signup: { username?: string, password?: string } = {};
16 | public submitted = false;
17 | public loginForm: FormGroup;
18 |
19 | public loginState$: any;
20 |
21 | constructor(
22 | private formBuilder: FormBuilder,
23 | private store: Store