angular-cn/packages/elements
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
..
schematics fix(elements): schematics fails with schema.json not found error (#35211) 2020-02-11 11:42:52 -08:00
src fix(elements): correctly set `SimpleChange#firstChange` for pre-existing inputs (#36140) 2020-03-24 10:29:32 -07:00
test fix(elements): correctly set `SimpleChange#firstChange` for pre-existing inputs (#36140) 2020-03-24 10:29:32 -07:00
BUILD.bazel build: provide full paths to `ts_api_guardian_test_npm_package` and `ts_api_guardian_test` (#36034) 2020-03-12 09:49:00 -07:00
PACKAGE.md docs: add package doc files (#26047) 2018-10-05 15:42:14 -07:00
index.ts feat(elements): add support for creating custom elements (#22413) 2018-03-16 12:39:07 -07:00
package.json build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
public_api.ts feat(elements): fix lint (#22413) 2018-03-16 12:39:07 -07:00