angular-docs-cn/goldens/size-tracking
Kristiyan Kostadinov d3705b3284 fix(common): avoid mutating context object in NgTemplateOutlet (#40360)
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
2021-02-23 08:14:02 -08:00
..
aio-payloads.json fix(common): avoid mutating context object in NgTemplateOutlet (#40360) 2021-02-23 08:14:02 -08:00
integration-payloads.json fix(router): fix load interaction of navigation and preload strategies (#40389) 2021-02-16 11:28:50 -08:00