-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
288a040
commit e1e87f1
Showing
9 changed files
with
74 additions
and
7 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
src/app/animations/loading-spinner/loading-spinner.component.css
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.spinner { | ||
position: fixed; | ||
left: 50%; | ||
right: 50%; | ||
width: 60px; | ||
height: 60px; | ||
margin-top: 40px; | ||
margin-left: -30px; | ||
|
||
background-color: rgba(255, 255, 255, 0.4); | ||
|
||
border-radius: 100%; | ||
-webkit-animation: sk-scaleout 1.0s infinite ease-in-out; | ||
animation: sk-scaleout 1.0s infinite ease-in-out; | ||
} | ||
|
||
@-webkit-keyframes sk-scaleout { | ||
0% { -webkit-transform: scale(0) } | ||
100% { | ||
-webkit-transform: scale(1.0); | ||
opacity: 0; | ||
} | ||
} | ||
|
||
@keyframes sk-scaleout { | ||
0% { | ||
-webkit-transform: scale(0); | ||
transform: scale(0); | ||
} 100% { | ||
-webkit-transform: scale(1.0); | ||
transform: scale(1.0); | ||
opacity: 0; | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
src/app/animations/loading-spinner/loading-spinner.component.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div class="spinner"></div> |
15 changes: 15 additions & 0 deletions
15
src/app/animations/loading-spinner/loading-spinner.component.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'loading-spinner', | ||
templateUrl: './loading-spinner.component.html', | ||
styleUrls: ['./loading-spinner.component.css'] | ||
}) | ||
export class LoadingSpinnerComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
<h3>All Heroes</h3> | ||
|
||
<loading-spinner *ngIf="showSpinner"></loading-spinner> | ||
|
||
<div *ngFor="let cust of customers; let rowIndex=index" [@transitionView]> | ||
<a [routerLink]="['/customers', cust._id]"><span class="badge badge-dark">{{rowIndex + 1}}</span> -> {{cust.firstname}}</a> | ||
<a [routerLink]="['/customers', cust._id]"><span class="badge badge-dark">{{rowIndex + 1}}</span> -> {{cust.firstname}} {{cust.lastname}}</a> | ||
</div> |
This file contains 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