Output-Beispiel für Product-Alerts
[examples/angular-tutorial] / src / app / product-list / product-list.component.ts
index a66ea2e..41e68b7 100644 (file)
@@ -12,4 +12,8 @@ export class ProductListComponent {
   share() {
     window.alert('The product has been pimmelled!');
   }
+
+  onNotify() {
+    window.alert('You have been pimmeld!');
+  }
 }