fix(ivy): ngOnChanges only runs for binding updates (#27965)

PR Close #27965
This commit is contained in:
Ben Lesh
2018-12-20 17:23:25 -08:00
committed by Andrew Kushnir
parent b0caf02d4f
commit 8ebdb437dc
47 changed files with 1468 additions and 1397 deletions

View File

@ -464,10 +464,12 @@ export type PropertyAliases = {
/**
* Store the runtime input or output names for all the directives.
*
* - Even indices: directive index
* - Odd indices: minified / internal name
* Values are stored in triplets:
* - i + 0: directive index
* - i + 1: minified / internal name
* - i + 2: declared name
*
* e.g. [0, 'change-minified']
* e.g. [0, 'minifiedName', 'declaredPropertyName']
*/
export type PropertyAliasValue = (number | string)[];
@ -495,10 +497,12 @@ export type InitialInputData = (InitialInputs | null)[];
* Used by InitialInputData to store input properties
* that should be set once from attributes.
*
* Even indices: minified/internal input name
* Odd indices: initial value
* The inputs come in triplets of:
* i + 0: minified/internal input name
* i + 1: declared input name (needed for OnChanges)
* i + 2: initial value
*
* e.g. ['role-min', 'button']
* e.g. ['minifiedName', 'declaredName', 'value']
*/
export type InitialInputs = string[];