Implementing the AngularJS Module and Controller to Support Shopping Cart Views

With the views finished, you need to implement AngularJS controller code to support them. The views need to be able to get the customer, product, and order documents from the webserver. They also need to be able to update the customer shipping, billing, and cart, and they need to be able to process new orders.

In the shopping cart example, everything is built into a single module and controller. The controller code is a bit long for a single section in the book, so the following sections break down the various components of the controller code and describe smaller code chunks. The full Angular JS code for the controller is shown later on, in Listing 28.29.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.47.230