angular-cn/packages/elements/test
George Kalpakas b14ac96750 fix(elements): correctly set `SimpleChange#firstChange` for pre-existing inputs (#36140)
Previously, when an input property was set on an `NgElement` before
instantiating the underlying component, the `SimpleChange` object passed
to `ngOnChanges()` would have `firstChange` set to false, even if this
was the first change (as far as the component instance was concerned).

This commit fixes this by ensuring `SimpleChange#firstChange` is set to
true on first change, regardless if the property was set before or after
instantiating the component. This alignthe behavior of Angular custom
elements with that of the corresponding components when used directly
(not as custom elements).

Jira issue: [FW-2007](https://angular-team.atlassian.net/browse/FW-2007)

Fixes #36130

PR Close #36140
2020-03-24 10:29:32 -07:00
..
BUILD.bazel build: fix elements test failures on IE (#35940) 2020-03-10 14:16:34 -04:00
component-factory-strategy_spec.ts fix(elements): correctly set `SimpleChange#firstChange` for pre-existing inputs (#36140) 2020-03-24 10:29:32 -07:00
create-custom-element_spec.ts refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
extract-projectable-nodes_spec.ts refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
slots_spec.ts feat(elements): enable Shadow DOM v1 and slots (#24861) 2018-08-30 21:33:14 -07:00
utils_spec.ts feat(elements): add tests for component factory strategy (#22413) 2018-03-16 12:39:07 -07:00