diff --git a/aio/content/examples/inputs-outputs/src/app/input-output/input-output.component.html b/aio/content/examples/inputs-outputs/src/app/input-output/input-output.component.html index c6a1e1dc1e..fe11261a37 100644 --- a/aio/content/examples/inputs-outputs/src/app/input-output/input-output.component.html +++ b/aio/content/examples/inputs-outputs/src/app/input-output/input-output.component.html @@ -1,2 +1,2 @@ -Item: {{item}} - +

Item: {{item}}

+ diff --git a/aio/content/examples/inputs-outputs/src/app/item-output/item-output.component.html b/aio/content/examples/inputs-outputs/src/app/item-output/item-output.component.html index c6baef5bfb..e663379ae0 100644 --- a/aio/content/examples/inputs-outputs/src/app/item-output/item-output.component.html +++ b/aio/content/examples/inputs-outputs/src/app/item-output/item-output.component.html @@ -1,6 +1,7 @@

Child component with @Output()

- + + diff --git a/aio/content/guide/inputs-outputs.md b/aio/content/guide/inputs-outputs.md index a9962fc143..b10223e650 100644 --- a/aio/content/guide/inputs-outputs.md +++ b/aio/content/guide/inputs-outputs.md @@ -32,7 +32,7 @@ Conversely, `@Output()` allows the child to send data to a parent component. The `@Input()` decorator in a child component or directive signifies that the property can receive its value from its parent component. To use `@Input()`, you must configure the parent and child. @@ -72,7 +72,7 @@ With `@Input()`, Angular passes the value for `currentItem` to the child so that The following diagram shows this structure: The target in the square brackets, `[]`, is the property you decorate with `@Input()` in the child component. @@ -90,7 +90,7 @@ See the [`OnChanges`](guide/lifecycle-hooks#onchanges) section of the [Lifecycle The `@Output()` decorator in a child component or directive allows data to flow from the child to the parent. `@Output()` marks a property in a child component as a doorway through which data can travel from the child to the parent. @@ -190,7 +190,7 @@ When you click delete, the child component raises an event, `deleteRequest`, whi The following diagram shows the different parts of the `@Input()` and `@Output()` on the `` child component. The child selector is `` with `item` and `deleteRequest` being `@Input()` and `@Output()`