angular-docs-cn/packages/elements/src
George Kalpakas bdce7698fc fix(elements): update the view of an `OnPush` component when inputs change (#39452)
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:
3236ae0ee1/packages/upgrade/src/common/src/downgrade_component_adapter.ts (L146).

Fixes #38948

PR Close #39452
2020-11-06 09:31:46 -08:00
..
component-factory-strategy.ts fix(elements): update the view of an `OnPush` component when inputs change (#39452) 2020-11-06 09:31:46 -08:00
create-custom-element.ts refactor(elements): simplify code after IE<11 support removal (#39265) 2020-10-14 14:11:22 -07:00
element-strategy.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
extract-projectable-nodes.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
utils.ts docs: remove IE10 references from comments in the code (#39090) 2020-10-13 15:51:49 -07:00
version.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00