22 < h1 >
33 {{title}}
44 </ h1 >
5- < div class ="row " *ngIf ="isLoggedIn()|async ">
6- < div class ="row ">
7- < div class ="col-md-6 col-md-offset-3 ">
8- < div class ="panel panel-default ">
9- < div class ="panel-heading "> User Information</ div >
10- < ul class ="list-group ">
11- < li class ="list-group-item "> Email: {{(currentUser()|async).email}}</ li >
12- < li class ="list-group-item "> Display Name: {{(currentUser()|async).displayName}}</ li >
13- < li class ="list-group-item "> Uid: {{(currentUser()|async).uid}}</ li >
14- < li class ="list-group-item "> Provider Id: {{(currentUser()|async).providerId}}</ li >
15- < li class ="list-group-item " *ngIf ="(currentUser()|async).photoURL "> < img [src] ="(currentUser()|async).photoURL "/> </ li >
16- </ ul >
17- </ div >
18- </ div >
19- < div class ="row ">
20- < div class ="col-md-3 col-md-offset-5 ">
21- < a href ="# " class ="btn btn-lg btn-primary btn-block " (click) ="logout() "> Log out</ a >
22- </ div >
23- </ div >
24- </ div >
25- </ div >
26- < div class ="row ">
27- < div class ="main " *ngIf ="!(isLoggedIn()|async) ">
28-
29- < h3 > Please Log In
30- <!--, or <a href="#">Sign Up</a>-->
31- </ h3 >
32- < div class ="row ">
33- < div class ="col-xs-6 col-sm-6 col-md-6 ">
34- < a href ="# " class ="btn btn-lg btn-primary btn-block " (click) ="loginVia('twitter') "> Twitter</ a >
35- </ div >
36- < div class ="col-xs-6 col-sm-6 col-md-6 ">
37- < a href ="# " class ="btn btn-lg btn-info btn-block " (click) ="loginVia('google') "> Google</ a >
38- </ div >
39- </ div >
40- < div class ="login-or ">
41- < hr class ="hr-or ">
42- < span class ="span-or "> or</ span >
43- </ div >
44-
45- < form role ="form ">
46- < div class ="form-group ">
47- < label for ="email "> Email</ label >
48- < input required type ="text " class ="form-control " id ="email " name ="email " [(ngModel)] ="email ">
49- </ div >
50- < div class ="form-group ">
51- < label for ="password "> Password</ label >
52- < input type ="password " class ="form-control " id ="password " name ="password " [(ngModel)] ="password ">
53- </ div >
54- < button class ="btn btn btn-primary " (click) ="login() ">
55- Log In
56- </ button >
57- </ form >
58-
59- </ div >
60- </ div >
5+ < app-display-user > </ app-display-user >
6+ < app-login-user > </ app-login-user >
617</ div >
0 commit comments