From 6cf3c2b68287f3464669e38f1c27c506b46301f7 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Mon, 3 Dec 2018 23:28:48 +0200 Subject: [PATCH] docs(ivy): fix component definition description of `inputs` (#27300) PR Close #27300 --- packages/core/src/render3/definition.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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