[no-issue] remove viewChildren use (#3116)

* remove viewChildren component use in lib and demoshell

* Update trashcan.component.ts

* Update trashcan.component.ts
This commit is contained in:
Eugenio Romano
2018-03-23 10:06:59 +00:00
committed by GitHub
parent 12f29d5524
commit 812c7be6f6
25 changed files with 37 additions and 27 deletions

View File

@@ -1,4 +1,5 @@
<adf-people-search-field
#peopleSearchField
class="adf-people-selector-field"
[performSearch]="performSearch"
[placeholder]="placeholder"
@@ -11,4 +12,4 @@
data-automation-id="adf-people-selector-deselect"
(click)="userDeselected()">
<mat-icon>cancel</mat-icon>
</button>
</button>

View File

@@ -41,7 +41,7 @@ export class PeopleSelectorComponent {
@Output()
peopleIdChange: EventEmitter<number>;
@ViewChild(PeopleSearchFieldComponent)
@ViewChild('peopleSearchField')
searchFieldComponent: PeopleSearchFieldComponent;
performSearch: PerformSearchCallback;