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
import {Component, OnInit} from '@angular/core'; | |
@Component({ | |
selector: 'app', | |
templateUrl: 'app.html', | |
styleUrls: ['app.scss'] | |
}) | |
export class AppComponent implements OnInit { | |
private d; | |
private dateFormat; |
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
import {Injectable} from "@angular/core"; | |
@Injectable() | |
export class EmailValidationService { | |
private regex: any = /^[a-zA-Z0-9.!#$%&’*+\/=?^_`{|}~-]+@[a-zA-Z0-9-]+((?:\.){1}[a-zA-Z0-9-]+)$/; | |
private isEmailValid = false; | |
constructor() {} | |
getEmailValidity(email) { | |
if (email && email.match(this.regex)) { | |
return this.isEmailValid = true; |
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
import {Injectable} from "@angular/core"; | |
@Injectable() | |
export class GeneralValidationService { | |
constructor() {} | |
getEmailValidity(email) { | |
let regex: any = /^[a-zA-Z0-9.!#$%&’*+\/=?^_`{|}~-]+@[a-zA-Z0-9-]+((?:\.){1}[a-zA-Z0-9-]+)$/; | |
let isEmailValid = false; | |
if (email && email.match(regex).length) { | |
return isEmailValid = true; |
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
.app-container { | |
display: flex; | |
justify-content:center; | |
} | |
.main-content { | |
display: flex; | |
flex-direction: column; | |
align-items:center; | |
background-color: gray; |
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
.app-container { | |
display: flex; | |
justify-content:center; | |
} | |
.main-content { | |
display: flex; | |
flex-direction: column; | |
align-items:center; | |
background-color: gray; |
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
export module UIConsts { | |
export const UI_UPDATE = 'UI_UPDATE'; | |
export const TOGGLE_UI_STATE = 'TOGGLE_UI_STATE'; | |
} |
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 class="table-container"> | |
<div class="table"> | |
<div class="table-head"> | |
<div class="table-row"> | |
<div class="head-mobile">head 1</div> | |
<div class="head-mobile">head 2</div> | |
<div class="head-mobile">head 3</div> | |
<div class="head">head 4</div> | |
<div class="head">head 5</div> | |
<div class="head">head 6</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
@keyframes bouncing-loader { | |
from { | |
opacity: 1; | |
transform: translateY(0) | |
} | |
to { | |
opacity: 0.1; | |
transform: translateY(-16px) | |
} | |
} |
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
@keyframes donut-spin { | |
0% { | |
transform: rotate(0deg); | |
} | |
100% { | |
transform: rotate(360deg); | |
} | |
} | |
.donut { | |
display: inline-block; |
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
@keyframes donut-spin { | |
0% {transform: rotate(0deg);} | |
100% {transform: rotate(360deg);} | |
} | |
@keyframes donut-spin-reverse { | |
0% {transform: rotate(360deg);} | |
100% {transform: rotate(0deg);} | |
} | |
@keyframes fade { | |
0% {opacity: 1;} |