test(core): update core tests (unrelated to queries) to use static flag (#30626)

PR Close #30626
This commit is contained in:
Kara Erickson
2019-05-22 17:15:41 -07:00
committed by Jason Aden
parent 21e8ac1e02
commit 4299ecf9be
24 changed files with 185 additions and 203 deletions

View File

@ -245,7 +245,7 @@ describe('projection', () => {
@Component(
{selector: 'comp', template: `<ng-template><ng-content></ng-content></ng-template>`})
class Comp {
@ViewChild(TemplateRef) template !: TemplateRef<any>;
@ViewChild(TemplateRef, {static: true}) template !: TemplateRef<any>;
}
@Directive({selector: '[trigger]'})