From 04f2ba28e1ba03e83783ac97359f115f6e4a02dd Mon Sep 17 00:00:00 2001 From: Ed Morales Date: Wed, 29 Mar 2017 15:29:40 -0700 Subject: [PATCH] fix(aot): remove private keyword from @View and @Content children. (#454) --- src/platform/core/data-table/data-table.component.ts | 2 +- src/platform/core/file/file-input/file-input.component.ts | 2 +- .../layout/navigation-drawer/navigation-drawer.component.ts | 2 +- src/platform/core/search/search-box/search-box.component.ts | 2 +- src/platform/core/search/search-input/search-input.component.ts | 2 +- src/platform/core/steps/step.component.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/platform/core/data-table/data-table.component.ts b/src/platform/core/data-table/data-table.component.ts index 96f5fcdd13..7e6ae281d3 100644 --- a/src/platform/core/data-table/data-table.component.ts +++ b/src/platform/core/data-table/data-table.component.ts @@ -69,7 +69,7 @@ export class TdDataTableComponent implements ControlValueAccessor, AfterContentI /** template fetching support */ private _templateMap: Map> = new Map>(); - @ContentChildren(TdDataTableTemplateDirective) private _templates: QueryList; + @ContentChildren(TdDataTableTemplateDirective) _templates: QueryList; /** * Implemented as part of ControlValueAccessor. diff --git a/src/platform/core/file/file-input/file-input.component.ts b/src/platform/core/file/file-input/file-input.component.ts index 9f0d4f596e..f53be16e20 100644 --- a/src/platform/core/file/file-input/file-input.component.ts +++ b/src/platform/core/file/file-input/file-input.component.ts @@ -49,7 +49,7 @@ export class TdFileInputComponent implements ControlValueAccessor { private _disabled: boolean = false; /** The native ` element */ - @ViewChild('fileInput') private _inputElement: ElementRef; + @ViewChild('fileInput') _inputElement: ElementRef; get inputElement(): HTMLInputElement { return this._inputElement.nativeElement; } diff --git a/src/platform/core/layout/navigation-drawer/navigation-drawer.component.ts b/src/platform/core/layout/navigation-drawer/navigation-drawer.component.ts index f3e8a602c8..894ff17831 100644 --- a/src/platform/core/layout/navigation-drawer/navigation-drawer.component.ts +++ b/src/platform/core/layout/navigation-drawer/navigation-drawer.component.ts @@ -32,7 +32,7 @@ export class TdNavigationDrawerComponent implements OnInit, OnDestroy { return this._menuToggled; } - @ContentChildren(TdNavigationDrawerMenuDirective) private _drawerMenu: QueryList; + @ContentChildren(TdNavigationDrawerMenuDirective) _drawerMenu: QueryList; /** * Checks if there is a [TdNavigationDrawerMenuDirective] as content. diff --git a/src/platform/core/search/search-box/search-box.component.ts b/src/platform/core/search/search-box/search-box.component.ts index 0a735b8c65..d1971e467a 100644 --- a/src/platform/core/search/search-box/search-box.component.ts +++ b/src/platform/core/search/search-box/search-box.component.ts @@ -27,7 +27,7 @@ import { TdSearchInputComponent } from '../search-input/search-input.component'; export class TdSearchBoxComponent { private _searchVisible: boolean = false; - @ViewChild(TdSearchInputComponent) private _searchInput: TdSearchInputComponent; + @ViewChild(TdSearchInputComponent) _searchInput: TdSearchInputComponent; set value(value: any) { this._searchInput.value = value; diff --git a/src/platform/core/search/search-input/search-input.component.ts b/src/platform/core/search/search-input/search-input.component.ts index 4644e90fd0..c8fbbea945 100644 --- a/src/platform/core/search/search-input/search-input.component.ts +++ b/src/platform/core/search/search-input/search-input.component.ts @@ -29,7 +29,7 @@ import 'rxjs/add/operator/debounceTime'; }) export class TdSearchInputComponent implements OnInit { - @ViewChild(MdInputDirective) private _input: MdInputDirective; + @ViewChild(MdInputDirective) _input: MdInputDirective; value: string; diff --git a/src/platform/core/steps/step.component.ts b/src/platform/core/steps/step.component.ts index 35910b5f44..0d1933f13b 100644 --- a/src/platform/core/steps/step.component.ts +++ b/src/platform/core/steps/step.component.ts @@ -51,7 +51,7 @@ export class TdStepComponent implements OnInit { return this._contentPortal; } - @ViewChild(TemplateRef) private _content: TemplateRef; + @ViewChild(TemplateRef) _content: TemplateRef; @ContentChild(TdStepLabelDirective) stepLabel: TdStepLabelDirective; @ContentChild(TdStepActionsDirective) stepActions: TdStepActionsDirective; @ContentChild(TdStepSummaryDirective) stepSummary: TdStepSummaryDirective;