diff --git a/packages/examples/common/ngIf/ts/module.ts b/packages/examples/common/ngIf/ts/module.ts index 535d90f655..fdd85e2273 100644 --- a/packages/examples/common/ngIf/ts/module.ts +++ b/packages/examples/common/ngIf/ts/module.ts @@ -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|null = null; - show: boolean = true; + show = true; @ViewChild('primaryBlock', {static: true}) primaryBlock: TemplateRef|null = null; @ViewChild('secondaryBlock', {static: true}) secondaryBlock: TemplateRef|null = null;