| 
									
										
										
										
											2019-12-28 16:37:59 -08:00
										 |  |  | load("//tools:defaults.bzl", "pkg_npm") | 
					
						
							| 
									
										
										
										
											2019-02-27 20:30:38 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | exports_files([ | 
					
						
							|  |  |  |     "tsconfig.json", | 
					
						
							|  |  |  |     "migrations.json", | 
					
						
							|  |  |  | ]) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-12-28 16:37:59 -08:00
										 |  |  | pkg_npm( | 
					
						
							| 
									
										
										
										
											2019-02-27 20:30:38 +01:00
										 |  |  |     name = "npm_package", | 
					
						
							|  |  |  |     srcs = ["migrations.json"], | 
					
						
							|  |  |  |     visibility = ["//packages/core:__pkg__"], | 
					
						
							| 
									
										
										
										
											2019-04-04 10:18:28 +01:00
										 |  |  |     deps = [ | 
					
						
							| 
									
										
										
										
											2020-09-26 21:35:25 +03:00
										 |  |  |         "//packages/core/schematics/migrations/abstract-control-parent", | 
					
						
							| 
									
										
										
										
											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", | 
					
						
							| 
									
										
										
										
											2019-08-27 15:09:09 +02:00
										 |  |  |         "//packages/core/schematics/migrations/missing-injectable", | 
					
						
							| 
									
										
										
										
											2019-10-17 01:40:36 -05:00
										 |  |  |         "//packages/core/schematics/migrations/module-with-providers", | 
					
						
							| 
									
										
										
										
											2019-04-16 23:06:06 -05:00
										 |  |  |         "//packages/core/schematics/migrations/move-document", | 
					
						
							| 
									
										
										
										
											2020-09-17 15:12:08 +02:00
										 |  |  |         "//packages/core/schematics/migrations/native-view-encapsulation", | 
					
						
							| 
									
										
										
										
											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", | 
					
						
							| 
									
										
										
										
											2019-06-09 15:38:18 +02:00
										 |  |  |         "//packages/core/schematics/migrations/renderer-to-renderer2", | 
					
						
							| 
									
										
										
										
											2020-10-12 11:13:57 -07:00
										 |  |  |         "//packages/core/schematics/migrations/router-preserve-query-params", | 
					
						
							| 
									
										
										
										
											2019-04-04 10:18:28 +01:00
										 |  |  |         "//packages/core/schematics/migrations/static-queries", | 
					
						
							|  |  |  |         "//packages/core/schematics/migrations/template-var-assignment", | 
					
						
							| 
									
										
										
										
											2019-08-15 12:40:53 +03:00
										 |  |  |         "//packages/core/schematics/migrations/undecorated-classes-with-decorated-fields", | 
					
						
							| 
									
										
										
										
											2019-07-24 12:07:07 +02:00
										 |  |  |         "//packages/core/schematics/migrations/undecorated-classes-with-di", | 
					
						
							| 
									
										
										
										
											2020-10-12 18:07:34 +02:00
										 |  |  |         "//packages/core/schematics/migrations/wait-for-async", | 
					
						
							| 
									
										
										
										
											2019-04-04 10:18:28 +01:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2019-02-27 20:30:38 +01:00
										 |  |  | ) |