Book Image

Angular 6 by Example - Third Edition

By : Chandermani Arora, Kevin Hennessy
Book Image

Angular 6 by Example - Third Edition

By: Chandermani Arora, Kevin Hennessy

Overview of this book

<p>Angular helps you build faster, efficient, and flexible cross-platform applications. Creating complex and rich web applications, with a lighter resource footprint, has never been easier or faster. Angular is now at release 6, with significant changes compared to previous versions.</p> <p>In this third edition of Angular by Example, you’ll build three apps with varying degrees of complexity. The book starts with a simple “Guess the Number”game, which serves as a platform to launch you into the world of Angular. Next, you will learn to develop a popular “7-Minute Workout” app, covering the building blocks of Angular. The final app, “Personal Trainer” morphs the existing “7-Minute Workout” into a full-fledged personal workout builder and runner, covering advanced directive building, which is the most fundamental and powerful feature of Angular.In addition to this, you will learn about testability and the framework constructs Angular provides to effectively test your app. The book concludes by providing you with practical advice and useful tips that will come in handy as you build more apps with Angular.</p>
Table of Contents (15 chapters)
Title Page
Copyright and Credits
Packt Upsell
Contributors
Preface
Index

Chapter 3. More Angular – SPA and Routing

The previous chapter was about building our first useful app in Angular, then this chapter is about adding a whole lot of Angular goodness to it. Within the learning curve, we have made a start in exploring a technology platform and now we can build some rudimentary apps using Angular. But that's just the start! There is a lot more to learn before we can make effective use of Angular in a decent-sized application. This chapter takes us one step closer to realizing this goal.

The 7-Minute Workout app still has some rough edges that we can fix while making the overall app experience better. This chapter is all about adding those enhancements and features. And as always, this app-building process provides us with enough opportunities to enhance our understanding of the framework and learn new things about it.

The topics we cover in this chapter include:

  • Exploring Angular's Single Page Applications (SPAs): We explore Angular's SPA capabilities, which include...