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
#1F1C18, #8E0E00, #C3002F, #FFFFFF, #3E403F, #FFFFFF, #DD0031, #DD0031, #C3002F, #FFFFFF |
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
Show hidden characters
"@angular-eslint/template/accessibility-alt-text": 2, | |
"@angular-eslint/template/accessibility-elements-content": 2, | |
"@angular-eslint/template/accessibility-label-for": 2, | |
"@angular-eslint/template/no-positive-tabindex": 2, | |
"@angular-eslint/template/accessibility-table-scope": 2, | |
"@angular-eslint/template/accessibility-valid-aria": 2, | |
"@angular-eslint/template/click-events-have-key-events": 2, | |
"@angular-eslint/template/mouse-events-have-key-events": 2, | |
"@angular-eslint/template/no-autofocus": 2, | |
"@angular-eslint/template/no-distracting-elements": 2 |
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 { LiveAnnouncer } from '@angular/cdk/a11y'; | |
import { Component } from '@angular/core'; | |
@Component(...) | |
export class ColorPickerDialogComponent { | |
color = '#fff'; | |
public defaultColors: string[] = [...]; | |
constructor(private liveAnnouncer: LiveAnnouncer) { } |
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
const party = new FormGroup({ | |
address: new FormGroup({ | |
house: new FormControl(123), | |
street: new FormGroup({ | |
name: new FormControl('Powell'), | |
kind: new FormControl('St'), | |
}), | |
}), | |
formal: new FormControl(true), | |
foodOptions: new FormArray([ |
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 } from '@angular/core'; | |
import { CommonModule } from '@angular/common'; // includes NgIf and TitleCasePipe | |
import { bootstrapApplication } from '@angular/platform-browser'; | |
import { MatCardModule } from '@angular/material/card'; | |
import { ImageComponent } from './app/image.component'; | |
import { HighlightDirective } from './app/highlight.directive'; | |
@Component({ | |
selector: 'app-root', |
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
const cat = new FormGroup({ | |
name: new FormGroup({ | |
first: new FormControl('Barb'), | |
last: new FormControl('Smith'), | |
}), | |
lives: new FormControl(9), | |
}); | |
// Type-checking for forms values! | |
// TS Error: Property 'substring' does not exist on type 'number'. |
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
// v13 untyped form | |
const cat = new FormGroup({ | |
name: new FormGroup( | |
first: new FormControl('Barb'), | |
last: new FormControl('Smith'), | |
), | |
lives: new FormControl(9) | |
}); | |
// v14 untyped form after running `ng update` |
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
// v14 partial typed form, migrating `UntypedFormGroup` -> `FormGroup` | |
const cat = new FormGroup({ | |
name: new FormGroup( | |
first: new UntypedFormControl('Barb'), | |
last: new UntypedFormControl('Smith'), | |
), | |
lives: new UntypedFormControl(9) | |
}); |
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
const routes: Routes = [{ | |
path: 'home', | |
component: HomeComponent | |
title: 'My App - Home' // <-- Page title | |
}, { | |
path: 'about', | |
component: AboutComponent, | |
title: 'My App - About Me' // <-- Page title | |
}]; |
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
const routes: Routes = [{ | |
path: 'home', | |
component: HomeComponent | |
}, { | |
path: 'about', | |
component: AboutComponent, | |
title: 'About Me' // <-- Page title | |
}]; | |
@Injectable() |
OlderNewer