Created
October 3, 2019 22:12
-
-
Save AvocadoVenom/d4e7f972885100e25234c15733c2ae77 to your computer and use it in GitHub Desktop.
Overlay Loading Directive > Loader Component
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Component } from '@angular/core'; | |
| @Component({ | |
| selector: 'app-loader', | |
| template: | |
| `<mat-card> | |
| <mat-card-header> | |
| <mat-card-title> | |
| Fetching data... | |
| </mat-card-title> | |
| </mat-card-header> | |
| <mat-card-content> | |
| <mat-progress-bar mode="indeterminate"></mat-progress-bar> | |
| </mat-card-content> | |
| </mat-card>` | |
| }) | |
| export class LoaderComponent { | |
| constructor() { } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment