mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
As with regular Angular components, Angular elements are expected to
have their views update when inputs change.
Previously, Angular Elements views were not updated if the underlying
component used the `OnPush` change detection strategy.
This commit fixes this by calling `markForCheck()` on the component
view's `ChangeDetectorRef`.
NOTE:
This is similar to how `@angular/upgrade` does it:
|
||
|---|---|---|
| .. | ||
| component-factory-strategy.ts | ||
| create-custom-element.ts | ||
| element-strategy.ts | ||
| extract-projectable-nodes.ts | ||
| utils.ts | ||
| version.ts | ||