Leanpub Header

Skip to main content

Aurelia For Real World Web Applications

Using the Aurelia Javascript framework to build real world applications.

Aurelia For Real World Applications is a book for developers wanting to learn how to use Aurelia to create awesome web applications. In this book you will not only learn the basics of Aurelia, but you will also learn how to create real world applications through practical examples and scenarios presented in this book. From custom elements through to bundling and everything inbetween, you will be able to master Aurelia at the conclusion of this book.

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

Pick Your Price...
PDF
EPUB
WEB
1,362
Readers
174
Pages
38,970Words
About

About

About the Book

Aurelia is a powerful Javascript framework based on standards. One of the strongest aspects of Aurelia is you are not learning a framework, you are learning how to use future-spec Javascript.

In this book you will learn the underlying concepts of the Aurelia framework and at the same time, you will learn how to do various real world programming tasks such as:

  • Working with forms; validation, multi-step, data caching
  • How to use third party libraries
  • Working with jQuery and jQuery UI
  • Interfacing with API's using both the Fetch and HttpClient dependencies provided by Aurelia
  • Implementing authentication in your Aurelia applications as well as numerous strategies for working with different types of authentication
  • How to write an Aurelia application using TypeScript
  • The definitive guide to bundling and deploying your Aurelia applications
  • Working with CSS pre-processors such as; LESS, Stylus and Sass
  • How to create custom elements and attributes
  • Porting over existing Angular 1 and Angular 2 applications to Aurelia
  • Working with the binding system
  • How to extend Aurelia
  • Working with the Task Queue module
  • All this and a whole heap more!

Share this book

Categories

Price

Pick Your Price...

Minimum price

$7.99

$20.00

You pay

$20.00

Author earns

$16.00
$

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

1.Welcome

  1. What Is Aurelia?
  2. Why Aurelia?
  3. Aurelia is standards based
  4. No lock-in
  5. Lightweight and performance oriented
  6. Commercial backing
  7. Legitimately small learning curve
  8. Dependency free
  9. Code examples on Github
  10. What will I learn in this book?

2.An Introduction to Modern Javascript

  1. Transpilers
  2. Decorators
  3. let
  4. Constants
  5. When constants are NOT immutable
  6. Destructuring assignment
  7. Default parameters and values
  8. Rest operator
  9. Classes
  10. Promises
  11. Arrow functions
  12. Sets and Maps
  13. Template literals
  14. Modules
  15. Conclusion

3.Beyond Javascript with TypeScript

  1. What is TypeScript?
  2. The benefits of TypeScript
  3. Strong Typing
  4. Intellisense
  5. TypeScript in action
  6. Classes
  7. Interfaces
  8. Basic Types
  9. Conclusion

4.The Fundamentals of Aurelia

  1. Terminology
  2. The component life-cycle
  3. Worth mentioning…
  4. Conventions
  5. View-model/View Pairs
  6. Overriding view/view-model conventions
  7. Custom Attributes/Custom Elements/Value Converters

5.Getting Started With Aurelia

  1. Setting up your development environment
  2. Installing Node.js
  3. Already have Node.js installed?
  4. Working with Npm (Node Package Manager)
  5. What about Yarn?
  6. The Aurelia CLI
  7. Aurelia CLI Default
  8. Installing the CLI
  9. A note on RequireJS
  10. CLI commands
  11. Conclusion

6.Building your first Aurelia app

  1. Downloading an IDE/Code editor
  2. Start a new project
  3. Let’s start coding…
  4. Conclusion

7.Templating

  1. Require
  2. Trap for young players
  3. Interpolation
  4. Warning: dirty checking
  5. Nested <template> elements
  6. Binding Modes
  7. Property binding
  8. Binding to style
  9. A note on binding to objects…
  10. Binding to innerhtml
  11. Security
  12. Binding to textcontent
  13. Binding to input values
  14. Binding to files
  15. Events
  16. Working with addEventListener/removeEventListener
  17. Inbuilt attributes
  18. if
  19. show
  20. repeat.for
  21. as-element
  22. Composition
  23. Local references/variables
  24. HTML only templates
  25. Summary

8.Dependency Injection (DI)

  1. Simple DI
  2. Singletons, singletons, singletons
  3. Configuring DI
  4. Autoinjecting dependencies in TypeScript
  5. Resolvers
  6. Lazy
  7. All
  8. Optional
  9. Parent
  10. Factory
  11. NewInstance
  12. Summary

9.Value Converters & Binding Behaviors

  1. Value Converters
  2. Binding Behaviors
  3. throttle
  4. debounce
  5. updateTrigger
  6. signal
  7. oneTime
  8. Conclusion

10.Event Aggregator

  1. Word of caution…
  2. Reasons to use the Event Aggregator
  3. Publishing events
  4. Subscribing to events
  5. Dispose of your waste carefully…

11.Structuring your applications

  1. TypeScript user?
  2. Common Components of an Aurelia Application
  3. Using the Aurelia CLI?
  4. Structure + Styles
  5. Common Styles
  6. Custom Elements
  7. Strategy #1
  8. Strategy #2
  9. Strategy #3
  10. Strategy #4

12.Working with forms

  1. Binding with form elements
  2. Checkboxes
  3. Radios
  4. Selects
  5. Textarea
  6. File
  7. Contenteditable
  8. Form Strategies
  9. Persisting form data
  10. Further improvements
  11. Multi-step form

13.Working with the HTTP & Fetch clients

  1. HTTP Client
  2. Making a GET request
  3. Making a POST request
  4. A Fluent API
  5. JSON by default
  6. Fetch Client
  7. You most likely need a polyfill…
  8. Making a GET request
  9. Making a POST request
  10. Basic Configuration
  11. Custom request headers
  12. Intercepting Requests
  13. Error Handling

14.Router

  1. Configuring the router
  2. Using pushState
  3. Routes explained
  4. Creating a basic route
  5. Creating a parameterized route
  6. Optional parameters
  7. Creating a wildcard route
  8. Wildcards
  9. Handling unknown routes aka 404’s
  10. Passing data via routes
  11. Be careful what you pass
  12. Dynamic routed modules
  13. Case Sensitive Routes
  14. Redirecting Routes
  15. The router pipeline
  16. Required
  17. Authorize Step
  18. PreActivate Step
  19. PreRender Step
  20. PostRender Step
  21. View Ports and Layouts
  22. View Ports
  23. A quick note…
  24. Layouts

15.Animating

  1. The foundation all animations are built on
  2. A note about animations
  3. Animator CSS
  4. Getting started
  5. Using the Aurelia CLI? Read this
  6. Our first CSS animation
  7. Manually triggering animation
  8. Manually triggering animation: in-depth
  9. Animator Velocity.js
  10. Getting Started
  11. Using the Aurelia CLI? Read this
  12. A basic animation example
  13. Registering custom effects

16.Testing

  1. Unit Testing
  2. What should a good unit test look like?
  3. Jasmine explained
  4. Testing view-model/views
  5. Testing custom elements
  6. Testing custom attributes
  7. Testing dependencies
  8. Mocks

17.Localization using i18n

  1. Prerequisites
  2. Installation
  3. Configuring our project
  4. Intl Polyfill
  5. Options
  6. Events
  7. Displaying localization values
  8. Translating via custom attribute
  9. Translating via code
  10. Setting the currently active locale
  11. Getting the currently active locale
  12. Bundling the locale files

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