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
<div *ngFor="let i of [].constructor(10)"> | |
<h1> Hi </h1> | |
</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
/* If u wanna dynamically check if the timer is/has expired, without reloading, uncomment line : [4][5][15][28][31] */ | |
/* var myInterval = setInterval(myTimer, 1000); // every 1sec re-execute myTimer() */ | |
/* function myTimer() { */ | |
var now = new Date().getTime(); | |
var mins = 10 // 10mins | |
var plusXmins = now + mins * 60 * 1000 | |
var getItem = localStorage.getItem("expireTime") | |
if (getItem == null) { |