Skip to content

Commit

Permalink
add icons
Browse files Browse the repository at this point in the history
  • Loading branch information
thebookins committed Feb 8, 2020
1 parent 726280b commit d205650
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

import { MatCardModule } from '@angular/material/card';
import { TimeAgoPipe } from 'time-ago-pipe';
import { MatIconModule } from '@angular/material/icon';


import { HttpClientModule } from '@angular/common/http';
import { TwitFollowComponent } from './twit-follow/twit-follow.component';
Expand All @@ -24,6 +26,7 @@ import { JwSocialButtonsModule } from 'jw-angular-social-buttons';
BrowserModule,
BrowserAnimationsModule,
MatCardModule,
MatIconModule,
HttpClientModule,
JwSocialButtonsModule
],
Expand Down
3 changes: 2 additions & 1 deletion src/app/status-bar/status-bar.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<mat-card class="example-card">
<mat-card *ngIf="status" class="example-card">
<mat-card-header>
<mat-card-title>Share US status</mat-card-title>
<mat-card-subtitle>
<mat-icon>{{ status.up ? "check" : "close" }}</mat-icon>
{{ status.up ? "online" : "offline" }} since {{ status.since | date }} ({{ status.since | timeAgo }})
</mat-card-subtitle>
</mat-card-header>
Expand Down

0 comments on commit d205650

Please sign in to comment.