Implementing the Orders View

When the order is complete, the user sees the orders view, which shows the user’s completed purchases. (There are other ways you can handle this part of the process. For example, you could add another page to display the completed order, or you could just send the user back to the shopping page.)

The orders view, shown in Listing 28.19, displays a list of orders that this customer has completed. The list comes from an ng-repeat directive on the $scope.orders value. The ng-repeat iteration lists the date the order was placed, the status, and the items bought, as shown in Figure 28.8.

Listing 28.19 orders.html: Implementing the partial orders view template

01 <div id="reviewContainer"> ...

Get Node.js, MongoDB, and AngularJS Web Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.