Output-Beispiel für Product-Alerts
[examples/angular-tutorial] / src / app / product-alerts / product-alerts.component.html
index 7ed54e8..bcf6553 100644 (file)
@@ -1,3 +1,3 @@
 <p *ngIf="product.price > 700">
-  <button>Notify Me</button>
+  <button (click)="notify.emit()">Notify Me</button>
 </p>