Add tracking of user's network connectivity.
This commit is contained in:
@@ -1 +1,9 @@
|
||||
<nav class="navbar navbar-dark bg-dark">
|
||||
<h1 class="navbar-brand">
|
||||
<strong *ngIf="noInternetConnection" style="color: red;">OFFLINE </strong>
|
||||
<img *ngIf="noInternetConnection" width="20rem" src="assets/images/no-wifi.svg" alt="Internet Disconnected">
|
||||
<strong *ngIf="!noInternetConnection" style="color: lawngreen;">ONLINE </strong>
|
||||
<img *ngIf="!noInternetConnection" width="20rem" src="assets/images/wifi.svg" alt="Internet Connected">
|
||||
</h1>
|
||||
</nav>
|
||||
<router-outlet (activate)="onResize(mediaQuery)"></router-outlet>
|
||||
|
||||
Reference in New Issue
Block a user