In this tutorial, you build your own Angular application from the start. This is a good way to experience a typical development process as you learn Angular application-design concepts, tools, and terminology.
If you're new to Angular, try the Try it now quick-start application first. Try it now is based on a ready-made partially completed project. You can edit the application in StackBlitz and see the results in real time.
Try it now covers the same major topics —components, template syntax, routing, services, and accessing data using HTTP— in a condensed format, following best practices.
This Tour of Heroes tutorial provides an introduction to the fundamentals of Angular and shows you how to:
The Tour of Heroes application that you build helps a staffing agency manage its stable of heroes. The application has many of the features that you'd expect to find in any data-driven application.
The finished application:
This tutorial helps you gain confidence that Angular can do whatever you need it to do by showing you how to:
After you complete all tutorial steps, the final application looks like this example.
Here's an image of where this tutorial leads, showing the Dashboard view and the most heroic heroes:
You can click the Dashboard and Heroes links in the dashboard to navigate between the views.
If you click the dashboard hero "Magneta," the router opens a "Hero Details" view where you can change the hero's name.
Clicking the "Back" button returns you to the Dashboard. Links at the top take you to either of the main views. If you click "Heroes," the application displays the "Heroes" list view.
When you click a different hero name, the read-only mini detail beneath the list reflects the new choice.
You can click the "View Details" button to drill into the editable details of the selected hero.
The following diagram illustrates the navigation options.
Here's the application in action:
© 2010–2022 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.