Please sign in to comment.
- Loading branch information...
|@@ -28,10 +28,20 @@ The cart needs KnockoutJS (2.x or greater) and jQuery. Make sure you have those,|
|You can open a console to play with the cart if you like - it's namespaced under Tekpub.Cart.|
|+The cart works based on bindings, as well as data attributes set on the HTML markup. **You do not need to use it this way** but if you want Fun Out of The Box you can.|
|+Here's an example:|
|+<button data-bind='click:addClicked' data-description='Tekpub Yearly Subscription' data-price='149.0' data-sku='yearly'>Give</button>|
|+The button's click event is bound to the Knockout Cart's click event handler. It will pull off the `data-*` attributes as needed.|
|The Jasmine tests are under the "spec" directory. Just double click the file to run. I'll be adding more of them over time.|
|## Help and Issues|
|-As always - if there's something you think could be done better, we're all ears. If you can provide a pull request - that's even better!|
|+As always - if there's something you think could be done better, we're all ears. If you can provide a pull request - that's even better!|