projects
/
examples
/
angular-tutorial
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
CartService und Buy-Button auf Detail-Seite hinzugefĆ¼gt
[examples/angular-tutorial]
/
src
/
app
/
product-details
/
product-details.component.html
diff --git
a/src/app/product-details/product-details.component.html
b/src/app/product-details/product-details.component.html
index
a86d6b8
..
726bc78
100644
(file)
--- a/
src/app/product-details/product-details.component.html
+++ b/
src/app/product-details/product-details.component.html
@@
-4,4
+4,5
@@
<h3>{{ product.name }}</h3>
<h4>{{ product.price | currency }}</h4>
<p>{{ product.description }}</p>
+ <button (click)="addToCart(product)">Buy</button>
</div>