test: clean up explicit dynamic query usages (#33015)
Cleans up all the places where we explicitly set `static: false` on queries. PR Close #33015
This commit is contained in:
@ -183,7 +183,7 @@ describe('Google3 undecorated classes with decorated fields TSLint rule', () =>
|
||||
import { ViewChild, ElementRef } from '@angular/core';
|
||||
|
||||
export class Base {
|
||||
@ViewChild('button', { static: false }) button: ElementRef<HTMLElement>;
|
||||
@ViewChild('button') button: ElementRef<HTMLElement>;
|
||||
}
|
||||
`);
|
||||
|
||||
@ -209,7 +209,7 @@ describe('Google3 undecorated classes with decorated fields TSLint rule', () =>
|
||||
import { ContentChild, ElementRef } from '@angular/core';
|
||||
|
||||
export class Base {
|
||||
@ContentChild('button', { static: false }) button: ElementRef<HTMLElement>;
|
||||
@ContentChild('button') button: ElementRef<HTMLElement>;
|
||||
}
|
||||
`);
|
||||
|
||||
|
@ -159,7 +159,7 @@ describe('Undecorated classes with decorated fields migration', () => {
|
||||
import { ViewChild, ElementRef } from '@angular/core';
|
||||
|
||||
export class Base {
|
||||
@ViewChild('button', { static: false }) button: ElementRef<HTMLElement>;
|
||||
@ViewChild('button') button: ElementRef<HTMLElement>;
|
||||
}
|
||||
`);
|
||||
|
||||
@ -185,7 +185,7 @@ describe('Undecorated classes with decorated fields migration', () => {
|
||||
import { ContentChild, ElementRef } from '@angular/core';
|
||||
|
||||
export class Base {
|
||||
@ContentChild('button', { static: false }) button: ElementRef<HTMLElement>;
|
||||
@ContentChild('button') button: ElementRef<HTMLElement>;
|
||||
}
|
||||
`);
|
||||
|
||||
|
Reference in New Issue
Block a user