随笔分类 - AngularJS
摘要:1.Use a directive to ensure that we can only see the "Add to Cart" button if thecanPurchaseproperty is true.Add to Cart2.Our firstgemis so popular tha...
阅读全文
posted @ 2014-07-26 17:26
Zhentiw
摘要:1. Add a controller namedStoreControllerto ourgemStoreapplication.2. Attach theStoreControllerto thetag. Be sure to alias it asstore.3. Inapp.js, we'v...
阅读全文
posted @ 2014-07-26 17:12
Zhentiw
摘要:Create a Module namedgemStoreso we can get started on this marketing journey.Attach thegemStoremodule to our HTML page with a Directive.Inindex.html, ...
阅读全文
posted @ 2014-07-26 16:53
Zhentiw