refactor(docs-infra): fix docs examples for tslint rule member-ordering (#38143)

This commit updates the docs examples to be compatible with the
`member-ordering` tslint rule.

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:
George Kalpakas
2020-07-30 13:03:15 +03:00
committed by Alex Rickabaugh
parent 18a5117d1e
commit eb8f8c93c8
7 changed files with 21 additions and 11 deletions

View File

@ -32,6 +32,9 @@ export class ChildViewComponent {
})
// #docregion hooks
export class AfterViewComponent implements AfterViewChecked, AfterViewInit {
// #enddocregion hooks
comment = '';
// #docregion hooks
private prevHero = '';
// Query for a VIEW child of type `ChildViewComponent`
@ -61,8 +64,6 @@ export class AfterViewComponent implements AfterViewChecked, AfterViewInit {
}
// #enddocregion hooks
comment = '';
// #docregion do-something
// This surrogate for real business logic sets the `comment`
private doSomething() {