Leanpub Header

Skip to main content

The Aurelia 2 Book

A book for developers new to Aurelia 2 or who have worked with Aurelia 1. Learn the newest and modern version of Aurelia, by building an online store. Complete with product pages, a checkout page, search and more.

The author is letting you choose the price you pay for this book!

Pick Your Price...
PDF
EPUB
WEB
189
Readers
140
Pages
30,661Words
About

About

About the Book

Learn the newest and modern version of Aurelia, by building an online store. Complete with product pages, a checkout page, search and more. You'll learn how to develop Aurelia 2 applications using tried and tested best practices as well as some new features introduced into Aurelia 2.

Share this book

Price

Pick Your Price...

Minimum price

$9.99

$14.99

You pay

$14.99

Author earns

$11.99
$

All prices are in US $. You can pay in US $ or in your local currency when you check out.

EU customers: prices exclude VAT, which is added during checkout.

...Or Buy With Credits!

Number of credits (Minimum 1)

1
The author will earn $12.00 from your purchase!
You can get credits monthly with a Reader Membership

Author

About the Author

Dwayne Charrington

Dwayne is a front-end developer with over 10 years experiencing in the web development industry. Initially starting out as a full-stack developer before switching to a front-end developer a few years into his career, he enjoys writing about Javascript and has a deep passion for the web.

Contents

Table of Contents

Introduction

  1. About Aurelia
  2. Welcome
  3. Breaking Changes

A Crash Course on TypeScript

  1. TypeScript Types
  2. Union Types and Enums
  3. Interfaces
  4. Classes
  5. Return Types
  6. Access Modifiers
  7. Summary

The Fundamentals of Aurelia

  1. Terminology
  2. The component life-cycle
  3. Worth mentioning…
  4. Conventions
  5. About conventions
  6. Interfaces
  7. Summary

Aurelia Templating

  1. Interpolation
  2. Expressions
  3. Including Components
  4. Binding with .bind (and friends)
  5. Aurelia treats form elements differently when binding
  6. Events with .delegate (and friends)
  7. A note about .capture
  8. Value Converters
  9. Summary

Conditionals And Loops

  1. Working with if.bind
  2. A note about else
  3. Working with show.bind
  4. Repeating Elements With repeat.for

Creating Components

  1. HTML Only Custom Elements
  2. Convention Custom Elements
  3. Passing Data to Components
  4. Binding Modes
  5. Summary

Routing

  1. A Basic Example
  2. Displaying a Default Route
  3. Routes With Parameters
  4. Injecting The Router
  5. Navigating To Other Routes
  6. Route Hooks

Getting Started

  1. Installing Node.js
  2. The Aurelia CLI
  3. What are we building?
  4. Create a new project
  5. Let’s make some changes
  6. Code

Building The Foundation

  1. Including Bootstrap
  2. Including Font Awesome
  3. Remember
  4. Creating your first component
  5. Where to put your components?
  6. Creating your first route
  7. Where to store routes
  8. Where to put your routes?
  9. Code
  10. Summary

Products Page

  1. Creating the route
  2. Creating a service
  3. Injecting our service and using it
  4. Creating the view
  5. Summary
  6. Code

Product Detail Page

  1. Creating the route
  2. Creating the view
  3. Refactoring some code
  4. Need some help?
  5. Summary

Shopping Cart

  1. Smarter Logic
  2. Making the navbar reactive
  3. Creating the shopping cart view
  4. Need some help?
  5. Summary

Checkout

  1. Creating the route
  2. Adding Validation
  3. Creating Validation Rules
  4. Adding Validation To Your Views
  5. Displaying Validation Errors
  6. Triggering Validation
  7. Add a New Service Method
  8. Wire Up The API
  9. Redirect To The Orders Screen
  10. Need some help?
  11. Summary

Authentication (Login/Register)

  1. Create an Auth Service
  2. Creating Auth Routes (Login/Register)
  3. No validation
  4. Adding Links To The Nav Bar
  5. Need some help?
  6. Summary

Dashboard and Order Routes (Logged In Areas)

  1. Creating A Router Hook
  2. Create The Dashboard
  3. Add The Dashboard Nav-bar Link
  4. Create The Orders Page
  5. Creating The Order Detail Route
  6. Updating The Checkout
  7. Need some help?
  8. Summary

Search

  1. Creating The Search Components
  2. Add A Search Icon To The Nav-bar
  3. Adding Search To Our Application
  4. Run The App
  5. Need some help?
  6. Summary

Testing

  1. Test-Driven Development (TDD)
  2. Test After Development (TAD)
  3. Unit Tests
  4. Need some help?
  5. Summary

Creating An Admin Panel

  1. Create The Components
  2. Create The Product Edit View
  3. Run The Code
  4. Secure The Admin Panel
  5. Need some help?

Conclusion

  1. My promise

Updates

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub