diff --git "a/tiddlywiki/tiddlers/content/labs/lab10/_Labs_10_\047Add to Cart\047 Button.md.meta" "b/tiddlywiki/tiddlers/content/labs/lab10/_Labs_10_\047Add to Cart\047 Button.md.meta" index edb19e8..f84fff3 100644 --- "a/tiddlywiki/tiddlers/content/labs/lab10/_Labs_10_\047Add to Cart\047 Button.md.meta" +++ "b/tiddlywiki/tiddlers/content/labs/lab10/_Labs_10_\047Add to Cart\047 Button.md.meta" @@ -1,4 +1,4 @@ -section: 4.2 +section: 4.2.1 tags: lab10 title: /Labs/10/'Add to Cart' Button type: text/x-markdown \ No newline at end of file diff --git "a/tiddlywiki/tiddlers/content/labs/lab10/_Labs_10_\047How many do you want to buy_\047 Page.md" "b/tiddlywiki/tiddlers/content/labs/lab10/_Labs_10_\047How many do you want to buy_\047 Page.md" new file mode 100644 index 0000000..0ccca99 --- /dev/null +++ "b/tiddlywiki/tiddlers/content/labs/lab10/_Labs_10_\047How many do you want to buy_\047 Page.md" @@ -0,0 +1,9 @@ +To display the details for the selected product you can use the following template in your HTML: + +``` +{{cartCtrl.selectedProduct.productId}} +``` + +* `selectedProduct` refers to the controller field that you added in step 4.1. + +* `cartCtrl` is the name of the controller variable that you used in the `ng-controller` attribute. It should be an instance of the `Shopping Cart` controller that you created in step 4. \ No newline at end of file diff --git "a/tiddlywiki/tiddlers/content/labs/lab10/_Labs_10_\047How many do you want to buy_\047 Page.md.meta" "b/tiddlywiki/tiddlers/content/labs/lab10/_Labs_10_\047How many do you want to buy_\047 Page.md.meta" new file mode 100644 index 0000000..0c0cc39 --- /dev/null +++ "b/tiddlywiki/tiddlers/content/labs/lab10/_Labs_10_\047How many do you want to buy_\047 Page.md.meta" @@ -0,0 +1,4 @@ +section: 4.2 +tags: lab10 +title: /Labs/10/'How many do you want to buy?' Page +type: text/x-markdown \ No newline at end of file