crisbeto
f5982fd746
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-09-11 19:14:03 -04:00
..
2019-09-09 19:10:54 -04:00
2019-09-10 15:19:31 -04:00
2019-07-25 17:05:23 -07:00
2019-09-11 15:24:10 -07:00
2019-09-11 15:24:10 -07:00
2019-09-11 15:24:10 -07:00
2019-09-11 19:14:03 -04:00
2019-07-18 14:26:37 -07:00
2019-09-10 15:19:31 -04:00
2019-09-09 15:55:42 -04:00
2019-08-29 21:51:56 -07:00
2019-09-11 19:13:34 -04:00
2019-08-30 12:53:25 -07:00
2019-09-10 14:53:08 -04:00
2019-09-09 19:10:54 -04:00
2019-09-03 11:59:39 -07:00
2019-09-03 11:59:39 -07:00
2019-06-11 00:03:11 +00:00
2019-05-09 11:22:00 -07:00
2019-09-10 07:58:44 -04:00
2019-09-09 19:10:54 -04:00
2019-09-09 19:10:54 -04:00
2019-08-30 12:44:46 -07:00
2019-07-18 14:21:25 -07:00
2019-07-16 13:02:10 -04:00
2019-01-11 11:15:59 -08:00
2019-07-18 14:21:25 -07:00
2019-07-18 14:21:25 -07:00
2019-07-18 14:21:26 -07:00
2019-07-18 14:21:26 -07:00
2019-02-06 14:17:55 -05:00