Skip to content

Commit 3b26757

Browse files
committed
Angular Security course
1 parent 3fdd990 commit 3b26757

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

src/app/app.component.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,10 @@ main {
1818

1919
.course-header h3 {
2020
text-align: center;
21+
}
22+
23+
24+
.user-email {
25+
color: blue;
26+
text-decoration: underline;
2127
}

src/app/app.component.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ <h3>Angular Security MasterClass</h3>
3131
<img class="course-logo"
3232
src="https://s3-us-west-1.amazonaws.com/angular-university/course-images/angular-security-thumbnail.png">
3333

34-
<div *ngIf="(user$ | async) as user">User: {{user.email}}</div>
34+
<ng-container *ngIf="(user$ | async) as user">
35+
36+
<h4 class="user-email" *ngIf="user.email">{{user.email}}</h4>
37+
38+
</ng-container>
39+
3540
</div>
3641

3742
<router-outlet></router-outlet>

src/app/services/auth.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {BehaviorSubject} from "rxjs/BehaviorSubject";
66

77
export const ANONYMOUS_USER: User = {
88
id: undefined,
9-
email: '',
9+
email: undefined,
1010
roles: []
1111
}
1212

0 commit comments

Comments
 (0)