mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
In `ViewRef.detectChanges`, we are passing `ViewRef.context` into `detectChanges` to trigger change detection. This only makes sense for component `ViewRefs` (i.e. injected `ChangeDetectorRefs`) because with embedded views, `context` is not a component instance where the view has been monkey-patched. It's a just a normal object, so the view will be undefined. In order to resolve this problem, we now invoke `detectChangesInternal` and also pass `LView` (to make sure we always have a view available). PR Close #27521 |
||
|---|---|---|
| .. | ||
| src | ||
| test | ||
| testing | ||
| BUILD.bazel | ||
| index.ts | ||
| package.json | ||
| PACKAGE.md | ||
| public_api.ts | ||
| rollup.config.js | ||
| tsconfig-build.json | ||