mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
refactor(autocomplete): explicitly set static flag on all queries (#15721)
This is a continuation of #15680. Explicitly marks all ViewChild and ContentChild queries so that the timing is consistent for apps using Ivy or ViewEngine.
This commit is contained in:
committed by
Jeremy Elbourn
parent
79f85423da
commit
a88d8832c1
@@ -105,13 +105,13 @@ export class MatAutocomplete extends _MatAutocompleteMixinBase implements AfterC
|
||||
_isOpen: boolean = false;
|
||||
|
||||
/** @docs-private */
|
||||
@ViewChild(TemplateRef) template: TemplateRef<any>;
|
||||
@ViewChild(TemplateRef, {static: false}) template: TemplateRef<any>;
|
||||
|
||||
/** Element for the panel containing the autocomplete options. */
|
||||
@ViewChild('panel') panel: ElementRef;
|
||||
@ViewChild('panel', {static: false}) panel: ElementRef;
|
||||
|
||||
/** @docs-private */
|
||||
@ContentChildren(MatOption, { descendants: true }) options: QueryList<MatOption>;
|
||||
@ContentChildren(MatOption, {descendants: true}) options: QueryList<MatOption>;
|
||||
|
||||
/** @docs-private */
|
||||
@ContentChildren(MatOptgroup) optionGroups: QueryList<MatOptgroup>;
|
||||
|
||||
Reference in New Issue
Block a user