docs: remove explicit boolean type in examples as TS infers it automatically (#39081)

In the `packages/examples/common/ngif/module.ts` file, the field `show` is given an explicit
boolean type. Since typescript infers boolean type, it is redundant and this commit removes it.

PR Close #39081
This commit is contained in:
Nihal 2020-10-01 21:29:29 +05:30 committed by Joey Perrott
parent 6e0a8eb268
commit 07a66fc4c2
1 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ import {Subject} from 'rxjs';
`
})
export class NgIfSimple {
show: boolean = true;
show = true;
}
// #enddocregion
@ -38,7 +38,7 @@ export class NgIfSimple {
`
})
export class NgIfElse {
show: boolean = true;
show = true;
}
// #enddocregion
@ -58,7 +58,7 @@ export class NgIfElse {
})
export class NgIfThenElse implements OnInit {
thenBlock: TemplateRef<any>|null = null;
show: boolean = true;
show = true;
@ViewChild('primaryBlock', {static: true}) primaryBlock: TemplateRef<any>|null = null;
@ViewChild('secondaryBlock', {static: true}) secondaryBlock: TemplateRef<any>|null = null;