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
<input type="file" class="file-upload" onchange="console.log(event.target.files)"> | |
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 {of} from "rxjs"; | |
import {delay} from "rxjs/operators"; | |
function simulateHttp(val: any, delay:number) { | |
return of(val).pipe(delay(delay)); | |
} | |
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
User Login Form: | |
<form [formGroup]="form"> | |
<input matInput type="email" name="email" | |
placeholder="Email" formControlName="email"> | |
<input matInput type="password" | |
placeholder="Password" formControlName="password"> | |
<button [disabled]="!form.valid"> |
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
{ | |
"sub": "353454354354353453", | |
"exp": 1504699256 | |
} | |
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 {MatDialogModule} from "@angular/material"; | |
@NgModule({ | |
declarations: [ | |
... | |
CourseDialogComponent | |
], | |
imports: [ | |
... |
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
form = this.fb.group({ | |
title: ['', { | |
validators: [ | |
Validators.required, | |
Validators.minLength(5), | |
Validators.maxLength(60) | |
], | |
asyncValidators: [courseTitleValidator(this.courses)], | |
updateOn: 'blur' |
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
{ | |
"publicKey":"BLBx-hf2WrL2qEa0qKb-aCJbcxEvyn62GDTyyP9KTS5K7ZL0K7TfmOKSPqp8vQF0DaG8hpSBknz_x3qf5F4iEFo", | |
"privateKey":"PkVHOUKgY29NM7myQXXoGbp_bH_9j-cxW5cO-fGcSsA" | |
} | |
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
<html> | |
<body> | |
<ul class="courses-list"> | |
<li>Angular Material Course</li> | |
<li>Angular Forms In Depth</li> | |
<li>Angular Router In Depth</li> | |
<li>Reactive Angular Course</li> | |
<li>RxJs In Practice Course</li> |
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
<!DOCTYPE html><html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Your application</title> | |
<link rel="stylesheet" href="bundle.css"> | |
</head> | |
<body> |
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 const App = component$<{isLoggedIn:boolean}>( (props) => { | |
const {isLoggedIn} = props; | |
return ( | |
<div class="container"> | |
<div className="user-profile"> | |
<img src="https://qwik.builder.io/logos/qwik-logo.svg" /> | |
</div> | |
<div class="main"> |
NewerOlder