diff --git a/packages/core/src/render3/definition.ts b/packages/core/src/render3/definition.ts index a98a8c7f82..d8b684288a 100644 --- a/packages/core/src/render3/definition.ts +++ b/packages/core/src/render3/definition.ts @@ -101,7 +101,7 @@ export function defineComponent(componentDefinition: { * ``` * { * publicInput1: 'publicInput1', - * declaredInput2: ['declaredInput2', 'publicInput2'], + * declaredInput2: ['publicInput2', 'declaredInput2'], * } * ``` * @@ -109,7 +109,7 @@ export function defineComponent(componentDefinition: { * ``` * { * minifiedPublicInput1: 'publicInput1', - * minifiedDeclaredInput2: [ 'publicInput2', 'declaredInput2'], + * minifiedDeclaredInput2: ['publicInput2', 'declaredInput2'], * } * ``` * @@ -118,7 +118,7 @@ export function defineComponent(componentDefinition: { * * NOTE: * - Because declared and public name are usually same we only generate the array - * `['declared', 'public']` format when they differ. + * `['public', 'declared']` format when they differ. * - The reason why this API and `outputs` API is not the same is that `NgOnChanges` has * inconsistent behavior in that it uses declared names rather than minified or public. For * this reason `NgOnChanges` will be deprecated and removed in future version and this