[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

@@ -10,6 +10,7 @@
<mat-icon class="adf-dropddown-breadcrumb-item-chevron">chevron_right</mat-icon>
<mat-select
#select
*ngIf="hasPreviousNodes()"
class="adf-dropdown-breadcrumb-path"
tabindex="0"

View File

@@ -31,7 +31,7 @@ import { BreadcrumbComponent } from './breadcrumb.component';
})
export class DropdownBreadcrumbComponent extends BreadcrumbComponent implements OnChanges {
@ViewChild(MatSelect)
@ViewChild('select')
selectbox: MatSelect;
currentNode: PathElementEntity;

View File

@@ -104,7 +104,7 @@ export class ContentNodeSelectorPanelComponent implements OnInit {
@Output()
select: EventEmitter<MinimalNodeEntryEntity[]> = new EventEmitter<MinimalNodeEntryEntity[]>();
@ViewChild(DocumentListComponent)
@ViewChild('documentList')
documentList: DocumentListComponent;
@ViewChild(HighlightDirective)

View File

@@ -25,7 +25,8 @@
</div>
</div>
<adf-search #auto="searchAutocomplete"
<adf-search #search
#auto="searchAutocomplete"
class="adf-search-result-autocomplete"
[maxResults]="liveSearchMaxResults"
[queryBody]="customQueryBody">

View File

@@ -94,7 +94,7 @@ export class SearchControlComponent implements OnInit, OnDestroy {
@Output()
optionClicked: EventEmitter<any> = new EventEmitter();
@ViewChild(SearchComponent)
@ViewChild('search')
searchAutocomplete: SearchComponent;
@ViewChild('searchInput')

View File

@@ -32,7 +32,7 @@ import 'rxjs/add/observable/merge';
styleUrls: ['./file-uploading-dialog.component.scss']
})
export class FileUploadingDialogComponent implements OnInit, OnDestroy {
@ViewChild(FileUploadingListComponent)
@ViewChild('uploadList')
uploadList: FileUploadingListComponent;
/** Dialog position. Can be 'left' or 'right'. */