Adds a schematic that will remove the explicit `static: false` flag from dynamic queries. E.g.
```ts
import { Directive, ViewChild, ContentChild, ElementRef } from '@angular/core';
@Directive()
export class MyDirective {
  @ViewChild('child', { static: false }) child: any;
  @ViewChild('secondChild', { read: ElementRef, static: false }) secondChild: ElementRef;
  @ContentChild('thirdChild', { static: false }) thirdChild: any;
}
```
```ts
import { Directive, ViewChild, ContentChild, ElementRef } from '@angular/core';
@Directive()
export class MyDirective {
  @ViewChild('child') child: any;
  @ViewChild('secondChild', { read: ElementRef }) secondChild: ElementRef;
  @ContentChild('thirdChild') thirdChild: any;
}
```
PR Close #32231
		
	
			
		
			
				
	
	
		
			19 lines
		
	
	
		
			530 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			530 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| load("//tools:defaults.bzl", "ts_library")
 | |
| 
 | |
| ts_library(
 | |
|     name = "dynamic-queries",
 | |
|     srcs = glob(["**/*.ts"]),
 | |
|     tsconfig = "//packages/core/schematics:tsconfig.json",
 | |
|     visibility = [
 | |
|         "//packages/core/schematics:__pkg__",
 | |
|         "//packages/core/schematics/migrations/google3:__pkg__",
 | |
|         "//packages/core/schematics/test:__pkg__",
 | |
|     ],
 | |
|     deps = [
 | |
|         "//packages/core/schematics/utils",
 | |
|         "@npm//@angular-devkit/schematics",
 | |
|         "@npm//@types/node",
 | |
|         "@npm//typescript",
 | |
|     ],
 | |
| )
 |