2 |
3 | Login
4 |
5 |
6 |
7 |
8 |
9 |
10 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 | LOGIN ERROR: {{ error }}
43 |
44 |
45 | LOGIN SUCCESSFULLY DONE
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/src/app/login/component/login/login.component.ts:
--------------------------------------------------------------------------------
1 | import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
2 | import {FormControl, FormGroup, Validators} from '@angular/forms';
3 | import {Credentials} from '@xtream/firebase-ngrx-user-management';
4 | import {Router} from '@angular/router';
5 |
6 | @Component({
7 | selector: 'app-login',
8 | templateUrl: './login.component.html',
9 | styleUrls: ['./login.component.css']
10 | })
11 | export class LoginComponent implements OnInit {
12 | public loginForm: FormGroup;
13 | @Input() error: string;
14 | @Input() success: boolean;
15 | @Output() googleLogin = new EventEmitter();
16 | @Output() facebookLogin = new EventEmitter();
17 | @Output() loginWithCredentials = new EventEmitter