d3705b3284
Currently `NgTemplateOutlet` recreates its view if its template is swapped out or a context object with a different shape is passed in. If an object with the same shape is passed in, we preserve the old view and we mutate the previous object. This mutation of the original object can be undesirable if two objects with the same shape are swapped between two different template outlets. The current behavior is a result of a limitation in `core` where the `context` of an embedded view is read-only, however a previous commit made it writeable. These changes resolve the context mutation issue and clean up a bunch of unnecessary logic from `NgTemplateOutlet` by taking advantage of the earlier change. Fixes #24515. PR Close #40360 |
||
---|---|---|
.. | ||
ng_class_spec.ts | ||
ng_component_outlet_spec.ts | ||
ng_for_spec.ts | ||
ng_if_spec.ts | ||
ng_plural_spec.ts | ||
ng_style_spec.ts | ||
ng_switch_spec.ts | ||
ng_template_outlet_spec.ts | ||
non_bindable_spec.ts |