angular-cn/packages/common
Pawel Kozlowski 685cc26ab2 fix(common): don't recreate view when context shape doesn't change (#18277)
Problem description: when using ngTemplateOutlet with context as
an object literal in a template and binding to the context's property
the embedded view would get re-created even if context object remains
essentially the same (the same shape, just update to one properties).
This happens since currently change detection will re-create object
references when an object literal is used and one of its properties
gets updated through a binding.

Solution: this commit changes ngTemplateOutlet logic so we take
context object shape into account before deciding if we should
re-create view or just update existing context.

Fixes #13407
2017-08-07 14:31:26 -07:00
..
http build: enable TSLint on the packages folder 2017-07-31 15:47:57 -07:00
src fix(common): don't recreate view when context shape doesn't change (#18277) 2017-08-07 14:31:26 -07:00
test fix(common): don't recreate view when context shape doesn't change (#18277) 2017-08-07 14:31:26 -07:00
testing build: import tslib rather than output TS helpers (#16901) 2017-05-23 14:01:39 -06:00
BUILD.bazel build: update bazel rules to latest (#18289) 2017-07-21 18:09:44 -05:00
index.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
package.json build: import tslib rather than output TS helpers (#16901) 2017-05-23 14:01:39 -06:00
public_api.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
rollup.config.js build: import tslib rather than output TS helpers (#16901) 2017-05-23 14:01:39 -06:00
tsconfig-build.json build: Introduce Bazel build rules 2017-06-05 11:18:20 -07:00