angular-docs-cn/packages/core
Paul Gschwendtner 1102b02406 refactor(core): static-query schematic should handle function callbacks (#29663)
Currently the static-query schematic is not able to properly handle
call expressions that pass function declarations that access a given
query. e.g.

```ts
ngOnInit() {
  this._callFunction(() => this.myQuery.doSomething());
}

_callFunction(cb: any) { cb(); }
```

In that case the passed function is executed synchronously in
the "ngOnInit" lifecycle and therefore the query needs to be
detected as "static".

We can fix this by keeping track of the current function context
and using it to resolve identifiers to the passed arguments.

PR Close #29663
2019-04-08 17:21:24 -07:00
..
schematics refactor(core): static-query schematic should handle function callbacks (#29663) 2019-04-08 17:21:24 -07:00
src docs(core): update API doc examples to use static injector (#29729) 2019-04-08 17:20:34 -07:00
test fix(ivy): creation mode not run on view detached from change detection (#29741) 2019-04-08 12:04:09 -07:00
testing fix(core): Deprecate TestBed.get(...):any (#29290) 2019-04-04 15:32:23 -07:00
BUILD.bazel refactor(ivy): move ngcc into a higher level folder (#29092) 2019-03-20 14:45:54 -04:00
PACKAGE.md docs: add package doc files (#26047) 2018-10-05 15:42:14 -07:00
index.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
package.json build: update zone.js to 0.9.0 (#28219) 2019-03-26 12:50:38 -07:00
public_api.ts build: publish tree of files rather than FESMs (#18541) 2017-08-31 15:34:50 -07:00
tsconfig-build.json feat(ivy): implement TestBed (#25369) 2018-08-14 11:58:47 -07:00