Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 263416c

Browse files
committed
docs(dart): update BASICS intro
Also copy edited the TS version a bit. NOTE: The TS version (and thus the Dart version) talks about "Reference" and "Resources" sections that don't exist. (API Reference does, but not Reference, as such.)
1 parent 5b1a84b commit 263416c

File tree

2 files changed

+68
-140
lines changed

2 files changed

+68
-140
lines changed
+18-93
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,18 @@
1-
include ../_util-fns
2-
3-
:marked
4-
This Developers Guide is a practical guide to Angular for experienced programmers who
5-
are building client applications in HTML and Dart.
6-
figure
7-
img(src="/resources/images/devguide/intro/people.png" alt="Us" align="left" style="width:200px; margin-left:-40px;margin-right:10px" )
8-
:marked
9-
We are on a journey together to understand how Angular works and, more importantly,
10-
how to make it work for us. We look at our application requirements and we see problems to solve.
11-
<br clear="all">
12-
13-
* How do we get data onto the screen and handle user interactions?
14-
* How do we organize our code into manageable, cohesive chunks of functionality that work together?
15-
* What are the essential Angular building blocks and how do they help?
16-
* How do we minimize routine, mechanical coding in favor of declarative, higher level constructs without losing control?
17-
18-
This chapter begins the journey.
19-
20-
<a id="how-to-read"></a>
21-
:marked
22-
# How to read this guide
23-
Each chapter of this guide targets an Angular feature,
24-
showing how to use it to solve a programming problem.
25-
26-
All the chapters include code snippets ... snippets we can reuse in our own applications.
27-
Typically, these snippets are excerpts from a sample application that accompanies the chapter.
28-
29-
**All the source files** for each sample app are displayed together at the **end of each chapter.**
30-
31-
<!-- Although a few early chapters are written as tutorials, most later chapters
32-
don't explain how to build the accompanying sample.
33-
These non-tutorial chapters highlight key points in code but generally don't include the entire source. -->
34-
35-
<!-- We don't have to read this guide straight through. -->
36-
<!-- The "[Cheat Sheet](cheatsheet.html)" is a handy map to Angular overall. -->
37-
<!-- A few early chapters are arranged sequentially and best read together to establish a foundation in Angular.
38-
But most chapters stand on their own. We can browse to any of them as our interest or some necessity moves us. -->
39-
40-
Here is a learning path we might follow:
41-
42-
1. First, be familiar with Dart programming and with web concepts such as
43-
the DOM, HTML, and CSS. Dart tutorials such as
44-
[Get Started](https://www.dartlang.org/docs/tutorials/get-started/) and
45-
[Connect Dart & HTML](https://www.dartlang.org/docs/tutorials/connect-dart-html/)
46-
are a great way to start.
47-
48-
1. Follow the [QuickStart](../quickstart.html), which is the "Hello, World" of Angular 2.
49-
It shows how to set up the libraries and tools needed to write *any* Angular app.
50-
It ends with a "proof of life", a running Angular app.
51-
52-
1. Next, read the Developers Guide chapters in order:
53-
<!-- TODO: adjust this text once we have non-introductory/tutorial chapters -->
54-
1. The rest of this chapter, especially the Architecture overview
55-
1. [Displaying Data](displaying-data.html)
56-
1. [User Input](user-input.html)
57-
1. [Forms](forms.html)
58-
<!-- add dependency injection when it exists -->
59-
<!-- add text about template syntax, once that exists -->
60-
61-
1. Consider hopping over to the [TypeScript docs](/docs/ts/latest/)
62-
since they're currently ahead of the Dart docs. (We're working on that!)
63-
Especially check out the [Tutorial](/docs/ts/latest/tutorial/) and
64-
[Cheat Sheet](/docs/ts/latest/guide/cheatsheet.html), and the guide chapters
65-
[Dependency Injection](/docs/ts/latest/guide/dependency-injection.html)
66-
and [Template Syntax](/docs/ts/latest/guide/template-syntax.html).
67-
68-
<!-- Follow your own star from there, wherever it leads. -->
69-
70-
Don't miss the [Cheat Sheet](cheatsheet.html), a handy map to Angular.
71-
72-
<a id="toh"></a>
73-
.l-main-section
74-
:marked
75-
# Appendix: The Hero Staffing Agency
76-
77-
There's a backstory to the <!-- the "Tour of Heroes" and --> samples in this guide.
78-
79-
The world is full of crises large and small.
80-
Fortunately, courageous heroes are prepared to take on every challenge.
81-
The shadowy Hero Staffing Agency matches crises to heroes.
82-
83-
We are contract developers, hired by the Agency to build an application to manage their operations.
84-
The Agency maintains a stable of heroes with special powers.
85-
Ordinary humans submit crises as job requests. The heroes bid to take the job, and the Agency
86-
assigns each job accordingly.
87-
88-
Our application handles every detail of recruiting, tracking, and job assignment.
89-
For example, the [Forms](forms.html) chapter features a screen for
90-
entering personal information about heroes:
91-
92-
figure.image-display
93-
img(src="/resources/images/devguide/forms/hero-form-1.png" width="400px" alt="Clean Form")
1+
extends ../../../ts/latest/guide/index.jade
2+
3+
block includes
4+
include ../_util-fns
5+
6+
block example-links
7+
:marked
8+
Look for a link to that sample near the top of each page.
9+
For example, the sample repo https://github.com/angular-examples/architecture
10+
contains the code
11+
for the [Architecture](architecture.html) chapter's sample.
12+
A running version of that sample is at
13+
https://angular-examples.github.io/architecture/.
14+
15+
A few early chapters are written as tutorials and are clearly marked as such.
16+
Most chapters are *not* tutorials.
17+
They highlight key points in code rather than explain each step necessary to build the sample.
18+
We can still get the full source from the sample repo.
+50-47
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
include ../_util-fns
1+
block includes
2+
include ../_util-fns
23

34
// #docregion intro
45
- var langName = current.path[1] == 'ts' ? 'TypeScript' : 'JavaScript'
@@ -17,7 +18,7 @@ figure
1718
<a id="learning-path"></a>
1819
:marked
1920
# Organization
20-
21+
2122
The documentation is divided into major thematic sections, each
2223
a collection of chapters devoted to that theme.
2324
// #enddocregion how-to-read-1
@@ -30,8 +31,8 @@ table(width="100%")
3031
td <b>Tutorial</b>
3132
td
3233
:marked
33-
A step-by-step, immersive approach to learning Angular.
34-
It begins with the [QuickStart](../quickstart.html),
34+
A step-by-step, immersive approach to learning Angular.
35+
It begins with the [QuickStart](../quickstart.html),
3536
the foundation for every chapter and sample in this documentation,
3637
followed by the [*Tour of Heroes* tutorial](../tutorial) that
3738
introduces the major features of Angular in an application context.
@@ -44,7 +45,7 @@ table(width="100%")
4445
td <b>Developer Guide</b>
4546
td
4647
:marked
47-
In depth analysis of Angular features and development practices.
48+
In-depth analysis of Angular features and development practices.
4849
tr(style=top)
4950
td <b>Cookbook</b>
5051
td
@@ -62,68 +63,70 @@ table(width="100%")
6263
:marked
6364
Other places to go for help and information.
6465
:marked
65-
# Learning Path
66-
We don't have to read the guide straight through. Most chapters stand on their own.
67-
68-
We recommend a learning path for those new to Angular.
66+
# Learning path
67+
We don't have to read the guide straight through. Most chapters stand on their own.
68+
69+
We recommend a learning path for those new to Angular.
6970
Most of that path runs through the *Basics* section:
7071

71-
1. Read the [Architecture Overview](architecture.html) to get the big picture.
72-
73-
1. Try the [QuickStart](../quickstart.html). The QuickStart is the "Hello, World" of Angular 2.
74-
It shows us how to setup the libraries and tools we'll need to write *any* Angular app.
75-
76-
1. Take the *Tour of Heroes* [Tutorial](../tutorial) which picks up from where the QuickStart leaves off
77-
and builds a simple data-driven app.
72+
1. Read the [Architecture](architecture.html) overview to get the big picture.
73+
74+
1. Try the [QuickStart](../quickstart.html). The QuickStart is the "Hello, World" of Angular 2.
75+
It shows us how to set up the libraries and tools we'll need to write *any* Angular app.
76+
77+
1. Take the *Tour of Heroes* [Tutorial](../tutorial), which picks up from where the QuickStart leaves off
78+
and builds a simple data-driven app.
7879
Simple, yes, but with the essential characteristics we'd expect of a professional application:
79-
a sensible project structure, data binding, master/detail, services, dependency injection, navigation, and remote data access.
80-
80+
a sensible project structure, data binding, master/detail, services, dependency injection, navigation, and remote data access.
81+
8182
Return to the *Basics* section and continue in the suggested order:
82-
83+
8384
1. [Displaying Data](displaying-data.html) explains how to get information on to the screen.
84-
85+
8586
1. [User Input](user-input.html) covers the basics of responding to user behavior.
86-
87+
8788
1. [Forms](forms.html) handle user data entry and validation within the UI.
88-
89+
8990
1. [Dependency Injection](dependency-injection.html) is the way we build large, maintainable applications
90-
from small, single purpose parts.
91-
92-
1. [Template Syntax](template-syntax.html) is a comprehensive study of Angular template HTML.
91+
from small, single-purpose parts.
92+
93+
1. [Template Syntax](template-syntax.html) is a comprehensive study of Angular template HTML.
9394

9495
With this foundation, we can read and understand any chapter in the guide.
9596
// #enddocregion how-to-read-2
9697
// #docregion the-rest
9798
:marked
98-
# Code Samples
99-
100-
Every chapter includes code snippets that we can reuse in our own applications.
99+
# Code samples
100+
101+
Every chapter includes code snippets that we can reuse in our own applications.
101102
These snippets are excerpts from a sample application that accompanies the chapter.
102-
103-
Look for a link to a running version of that sample near the top of each page
104-
such as this [live example](/resources/live-examples/architecture/ts/plnkr.html) from the [Architecture](architecture.html) chapter.
105-
106-
The link launches a browser-based code editor where we can inspect, modify, save, and download the code.
107-
108-
A few early chapters are written as tutorials and are clearly marked as such.
109-
Most chapters are *not* tutorials.
110-
They highlight key points in code rather than explain each step necessary to build the sample.
111-
We can always get the full source by way of the live link.
112-
103+
104+
block example-links
105+
:marked
106+
Look for a link to a running version of that sample near the top of each page,
107+
such as this [live example](/resources/live-examples/architecture/ts/plnkr.html) from the [Architecture](architecture.html) chapter.
108+
109+
The link launches a browser-based code editor where we can inspect, modify, save, and download the code.
110+
111+
A few early chapters are written as tutorials and are clearly marked as such.
112+
Most chapters are *not* tutorials.
113+
They highlight key points in code rather than explain each step necessary to build the sample.
114+
We can always get the full source by way of the live link.
115+
113116
## References
114-
117+
115118
The [Cheat Sheet](cheatsheet.html) lists Angular syntax for common scenarios.
116-
119+
117120
The [Glossary](glossary.html) defines terms that Angular developers should know.
118-
121+
119122
The [API Guide](../api/) is the authority on every public-facing member of the Angular libraries.
120-
123+
121124
# Feedback
122-
125+
123126
We welcome feedback! Leave a comment by clicking the icon in upper right corner of the banner.
124-
125-
Post *documentation* issues and pull requests on the
127+
128+
Post *documentation* issues and pull requests on the
126129
[angular.io](https://github.com/angular/angular.io) github repository.
127-
130+
128131
Post issues with *Angular 2 itself* to the [angular](https://github.com/angular/angular) github repository.
129132
// #enddocregion the-rest

0 commit comments

Comments
 (0)