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"> |
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
@Component({ | |
selector: 'login', | |
templateUrl: './login.component.html', | |
styleUrls: ['./login.component.css'] | |
}) | |
export class LoginComponent { | |
form = this.fb.group({ | |
email: ["", { |
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 declare const Breakpoints: { | |
XSmall: string; | |
Small: string; | |
Medium: string; | |
Large: string; | |
XLarge: string; | |
Handset: string; | |
Tablet: string; | |
Web: string; | |
HandsetPortrait: string; |
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
<mat-form-field appearance="outline"> | |
<input matInput formControlName="releasedAt"> | |
</mat-form-field> | |
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 class CoursesService() { | |
http: HttpClient; | |
constructor() { | |
this.http = new HttpClient(... dependencies needed by HTTPClient ...); | |
} | |
... | |
} |
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="container" *ngIf="userLoggedIn"> | |
.... visible only to authenticated users | |
<button *ngIf="user.admin">Delete User</button> | |
</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
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
<input type="file" class="file-upload" onchange="console.log(event.target.files)"> | |
NewerOlder