This file contains hidden or 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
{ | |
"key": "ctrl+s", | |
"command": "extension.multiCommand.execute", | |
"args": { | |
"sequence": ["postcssSorting.execute", "workbench.action.files.save"] | |
}, | |
"when": "editorLangId == css || editorLangId == scss" | |
}, | |
{ | |
"key": "ctrl+meta+s", |
This file contains hidden or 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
{ | |
"key": "ctrl+s", | |
"command": "extension.multiCommand.execute", | |
"args": { | |
"sequence": ["postcssSorting.execute", "workbench.action.files.save"] | |
}, | |
"when": "editorLangId == css" | |
}, | |
{ | |
"key": "ctrl+meta+s", |
This file contains hidden or 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 { Auth, signInWithEmailAndPassword } from '@angular/fire/auth'; | |
import { Injectable } from '@angular/core'; | |
@Injectable({ | |
providedIn: 'root', | |
}) | |
export class AuthService { | |
constructor(private auth: Auth) {} |
This file contains hidden or 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 interface LoginData { | |
email: string; | |
password: string; | |
} |
This file contains hidden or 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-toolbar></mat-toolbar> | |
<div class="background"> | |
<h1>Welcome to the NgBytes Dashboard</h1> | |
<h2>Built with <3 by Dottech</h2> | |
<a target="_blank" class="btn" href="https://github.com/puntotech/ngbytes-fireauth"> | |
Click here to view the source code | |
</a> | |
</div> |
This file contains hidden or 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'; | |
import { AuthService } from '../../core/services/auth.service'; | |
import { Router } from '@angular/router'; | |
@Component({ | |
selector: 'app-dashboard', | |
templateUrl: './dashboard.component.html', | |
styleUrls: ['./dashboard.component.css'], | |
}) |
This file contains hidden or 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
// Angular 12 | |
export abstract class AbstractControl { | |
readonly status: string; | |
readonly statusChanges: Observable<any>; | |
} | |
export class FormControl extends AbstractControl { } |
This file contains hidden or 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
// Angular 13 | |
export abstract class AbstractControl { | |
readonly status: FormControlStatus; | |
readonly statusChanges: Observable<FormControlStatus>; | |
} | |
export class FormControl extends AbstractControl { } |
This file contains hidden or 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
Show hidden characters
/* To learn more about this file see: https://angular.io/config/tsconfig. */ | |
{ | |
"compileOnSave": false, | |
"compilerOptions": { | |
"baseUrl": "./", | |
"outDir": "./dist/out-tsc", | |
"forceConsistentCasingInFileNames": true, | |
"strict": true, | |
"noImplicitReturns": true, | |
"noFallthroughCasesInSwitch": true, |
This file contains hidden or 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'; | |
import { AuthService } from 'src/app/core/services/auth.service'; | |
import { LoginData } from 'src/app/core/interfaces/login-data.interface'; | |
import { Router } from '@angular/router'; | |
@Component({ | |
selector: 'app-login-page', | |
templateUrl: './login-page.component.html', | |
styleUrls: ['./login-page.component.css'], |