diff --git a/aio/content/start/index.md b/aio/content/start/index.md index 2d8bb3e813..f78e4dcbce 100644 --- a/aio/content/start/index.md +++ b/aio/content/start/index.md @@ -311,6 +311,13 @@ To make the "Notify Me" button work, you need to configure two things: 1. In the component class, define a property named `notify` with an `@Output()` decorator and an instance of `EventEmitter()`. This allows the product alert component to emit an event when the value of the notify property changes. +
+ + When the Angular CLI generates a new component, it includes an empty constructor, the `OnInit` interface, and the `ngOnInit()` method. + Since the following example isn't using them, they are omitted here for brevity. + +
+ 1. In the product alert template, `product-alerts.component.html`, update the "Notify Me" button with an event binding to call the `notify.emit()` method.