Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
ASP.NET Core 2 and Vue.js

You're reading from   ASP.NET Core 2 and Vue.js Full Stack Web Development with Vue, Vuex, and ASP.NET Core 2.0

Arrow left icon
Product type Paperback
Published in Jul 2018
Publisher Packt
ISBN-13 9781788839464
Length 556 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
 Ratcliffe Ratcliffe
Author Profile Icon Ratcliffe
Ratcliffe
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

Title Page
Dedication
Packt Upsell
Preface
1. Understanding the Fundamentals FREE CHAPTER 2. Setting Up the Development Environment 3. Getting Started with the Project 4. Building Our First Vue.js Components 5. Building a Product Catalog 6. Building a Shopping Cart 7. User Registration and Authentication 8. Processing Payments 9. Building an Admin Panel 10. Deployment 11. Authentication and Refresh Token Flow 12. Server-Side Rendering 13. Continuous Integration and Continuous Deployment 1. Other Books You May Enjoy Index

Building a my account page


Now that we're allowing our users to place orders, we should really give them a page to view all of their previously placed orders as well. You'd normally find this information somewhere within a My Account section of most online shops, so we'll build a my account page here as well. The following template section belongs in a new ClientApp/pages/Account.vue file:

<template>
  <b-containerclass="page pt-4">
    <h1>My Account</h1>
    <order-list:orders="orders"/>
  </b-container>
</template>

Nothing special here, just the My Account heading and a new order-list component, which we'll define shortly. Note that we're binding an orders prop to a component property of the same name, which will eventually be populated with the list of orders that we'll retrieve from our backend API.

The script section for this page component is a little more involved, so we'll build it up in stages. Start by adding the following standard component...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime
Visually different images