style(docs-infra): fix docs examples for tslint rules related to whitespace (#38143)
This commit updates the docs examples to be compatible with the `align`, `space-before-function-paren` and `typedef-whitespace` tslint rules. This is in preparation of updating the docs examples `tslint.json` to match the one generated for new Angular CLI apps in a future commit. PR Close #38143
This commit is contained in:

committed by
Alex Rickabaugh

parent
24498eb416
commit
f882099f9d
@ -21,7 +21,7 @@ export class HeroTaxReturnComponent {
|
||||
}
|
||||
|
||||
@Input()
|
||||
set taxReturn (htr: HeroTaxReturn) {
|
||||
set taxReturn(htr: HeroTaxReturn) {
|
||||
this.heroTaxReturnService.taxReturn = htr;
|
||||
}
|
||||
|
||||
@ -32,7 +32,7 @@ export class HeroTaxReturnComponent {
|
||||
this.heroTaxReturnService.restoreTaxReturn();
|
||||
};
|
||||
|
||||
onClose() { this.close.emit(); };
|
||||
onClose() { this.close.emit(); };
|
||||
|
||||
onSaved() {
|
||||
this.flashMessage('Saved');
|
||||
|
@ -10,12 +10,12 @@ export class HeroTaxReturnService {
|
||||
|
||||
constructor(private heroService: HeroesService) { }
|
||||
|
||||
set taxReturn (htr: HeroTaxReturn) {
|
||||
set taxReturn(htr: HeroTaxReturn) {
|
||||
this.originalTaxReturn = htr;
|
||||
this.currentTaxReturn = htr.clone();
|
||||
}
|
||||
|
||||
get taxReturn (): HeroTaxReturn {
|
||||
get taxReturn(): HeroTaxReturn {
|
||||
return this.currentTaxReturn;
|
||||
}
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
// #docregion
|
||||
|
||||
export interface Hero {
|
||||
id: number;
|
||||
id: number;
|
||||
name: string;
|
||||
tid: string; // tax id
|
||||
tid: string; // tax id
|
||||
}
|
||||
|
||||
//// HeroTaxReturn ////
|
||||
|
Reference in New Issue
Block a user