| 
									
										
										
										
											2019-03-30 12:48:21 +01:00
										 |  |  | load("//tools:defaults.bzl", "ts_library") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ts_library( | 
					
						
							|  |  |  |     name = "google3", | 
					
						
							|  |  |  |     srcs = glob(["**/*.ts"]), | 
					
						
							|  |  |  |     tsconfig = "//packages/core/schematics:tsconfig.json", | 
					
						
							| 
									
										
										
										
											2019-07-24 10:03:51 +02:00
										 |  |  |     visibility = ["//packages/core/schematics/test/google3:__pkg__"], | 
					
						
							| 
									
										
										
										
											2019-03-30 12:48:21 +01:00
										 |  |  |     deps = [ | 
					
						
							| 
									
										
										
										
											2021-03-15 18:16:48 +01:00
										 |  |  |         "//packages/core/schematics/migrations/activated-route-snapshot-fragment", | 
					
						
							| 
									
										
										
										
											2020-12-11 17:16:54 -08:00
										 |  |  |         "//packages/core/schematics/migrations/can-activate-with-redirect-to", | 
					
						
							| 
									
										
										
											
												feat(core): add dynamic queries schematic (#32231)
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
											
										 
											2019-08-21 07:40:30 +02:00
										 |  |  |         "//packages/core/schematics/migrations/dynamic-queries", | 
					
						
							| 
									
										
										
										
											2019-10-12 23:25:58 -05:00
										 |  |  |         "//packages/core/schematics/migrations/initial-navigation", | 
					
						
							|  |  |  |         "//packages/core/schematics/migrations/initial-navigation/google3", | 
					
						
							| 
									
										
										
										
											2019-06-18 11:28:23 +02:00
										 |  |  |         "//packages/core/schematics/migrations/missing-injectable", | 
					
						
							|  |  |  |         "//packages/core/schematics/migrations/missing-injectable/google3", | 
					
						
							| 
									
										
										
										
											2020-09-12 14:33:06 +02:00
										 |  |  |         "//packages/core/schematics/migrations/navigation-extras-omissions", | 
					
						
							| 
									
										
										
										
											2020-06-05 19:40:13 -07:00
										 |  |  |         "//packages/core/schematics/migrations/relative-link-resolution", | 
					
						
							|  |  |  |         "//packages/core/schematics/migrations/relative-link-resolution/google3", | 
					
						
							| 
									
										
										
										
											2019-07-24 13:46:38 +02:00
										 |  |  |         "//packages/core/schematics/migrations/renderer-to-renderer2", | 
					
						
							| 
									
										
										
										
											2019-06-18 11:28:23 +02:00
										 |  |  |         "//packages/core/schematics/migrations/static-queries", | 
					
						
							| 
									
										
										
										
											2019-03-30 12:48:21 +01:00
										 |  |  |         "//packages/core/schematics/migrations/template-var-assignment", | 
					
						
							| 
									
										
										
										
											2019-08-15 12:40:53 +03:00
										 |  |  |         "//packages/core/schematics/migrations/undecorated-classes-with-decorated-fields", | 
					
						
							| 
									
										
										
										
											2020-02-11 16:33:20 +01:00
										 |  |  |         "//packages/core/schematics/migrations/undecorated-classes-with-decorated-fields/google3", | 
					
						
							| 
									
										
										
										
											2020-10-12 18:07:34 +02:00
										 |  |  |         "//packages/core/schematics/migrations/wait-for-async", | 
					
						
							| 
									
										
										
										
											2019-04-04 14:04:31 +02:00
										 |  |  |         "//packages/core/schematics/utils", | 
					
						
							| 
									
										
										
										
											2019-03-30 12:48:21 +01:00
										 |  |  |         "//packages/core/schematics/utils/tslint", | 
					
						
							|  |  |  |         "@npm//tslint", | 
					
						
							| 
									
										
										
										
											2019-05-09 14:51:51 -07:00
										 |  |  |         "@npm//typescript", | 
					
						
							| 
									
										
										
										
											2019-03-30 12:48:21 +01:00
										 |  |  |     ], | 
					
						
							|  |  |  | ) |