2015-10-09 15:18:47 -04:00
include ../../../../_includes/_util-fns
.l-main-section
:markdown
2015-10-15 03:51:24 -04:00
# Tour of Heroes: the vision
2015-10-09 15:18:47 -04:00
2015-10-15 03:51:24 -04:00
Our grand plan is to build an app to help a staffing agency manage its stable of heroes.
2015-10-12 21:36:33 -04:00
Even heroes need to find work.
2015-10-09 15:18:47 -04:00
2015-10-12 21:36:33 -04:00
Of course we'll only make a little progress in this tutorial. What we do build will
have many of the features we expect to find in a full-blown, data-driven application: acquiring and displaying
a list of heroes, editing a selected hero's detail, and navigating among different
views of heroic data.
2015-10-09 15:18:47 -04:00
2015-10-12 21:36:33 -04:00
The Tour of Heroes covers the core fundamentals of Angular.
We’ ll use built-in directives to show/hide elements and display lists of hero data.
We’ ll create a component to display hero details and another to show an array of heroes.
We'll use one-way data binding for read-only data. We'll add editable fields to update a model
with two-way data binding. We'll bind component method to user events like key strokes and clicks.
We’ ll learn to select a hero from a master list and edit that hero in the details view. We'll
2015-10-15 21:56:03 -04:00
format data with pipes. We'll create a shared service to assemble our heroes. And we'll use routing to navigate among different views and their components.
2015-10-09 15:18:47 -04:00
2015-10-12 21:36:33 -04:00
We’ ll learn enough core Angular to get started and gain confidence that
Angular can do whatever we need it to do.
We'll be covering a lot of ground at an introductory level but we’ ll find plenty of links
to chapters with greater depth.
2015-10-09 15:18:47 -04:00
2015-10-12 21:36:33 -04:00
## The End Game
2015-10-15 21:51:10 -04:00
Here's a visual idea of where we're going in this tour, beginning with the "Dashboard"
view and our most heroic heroes:
2015-10-09 15:18:47 -04:00
figure.image-display
2015-10-15 21:51:10 -04:00
img(src='/resources/images/devguide/toh/heroes-dashboard-1.png' alt="Output of heroes dashboard")
2015-10-09 15:18:47 -04:00
:markdown
2015-10-12 21:36:33 -04:00
Above the list are two links ("Dashboard" and "Heroes").
2015-10-15 21:51:10 -04:00
We click them to navigate between this Dashboard view and a Heroes view.
2015-10-12 21:36:33 -04:00
2015-10-15 21:56:55 -04:00
We can click a hero to be transitioned by the router to a "Hero Details" view,
2015-10-12 21:36:33 -04:00
where we can change the hero's name.
2015-10-15 21:51:10 -04:00
2015-10-09 15:18:47 -04:00
figure.image-display
img(src='/resources/images/devguide/toh/hero-details-1.png' alt="Details of hero in app")
:markdown
2015-10-12 21:36:33 -04:00
Links at the top take us back to either of the main views.
2015-10-15 21:51:10 -04:00
The "Back" button returns us to the "Dashboard" view.
figure.image-display
img(src='/resources/images/devguide/toh/heroes-list-1.png' alt="Output of heroes list app")
:markdown
Above the Dashboard are two links ("Dashboard" and "Heroes").
We click them to navigate between a Dashboard view and this Heroes view.
We can click the "Heroes" link and be wisked away by the router to
a "Heroes" view where we can see a list of our heroes.
We can click a hero and have the router race us over to a "Hero Details" view
again.
2015-10-09 15:18:47 -04:00
2015-10-12 21:36:33 -04:00
## How We Roll
2015-10-09 15:18:47 -04:00
2015-10-12 21:36:33 -04:00
We’ ll build this Tour of Heroes together, step by step.
We'll motiviate each step with a requirement that we've
met in countless applications. Everything has a reason.
2015-10-09 15:18:47 -04:00
2015-10-12 21:36:33 -04:00
And we’ ll meet many of the core fundamentals of Angular along the way.
2015-10-15 03:51:24 -04:00
2015-10-15 15:25:36 -04:00
[Let's get started!](./toh-pt1.html)