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

Commit 59391f9

Browse files
committed
Merge pull request #25 from angular/dart-quickstart
Tweaks to Dart quickstart, Dart resources banner
2 parents 8c8f148 + a9ef061 commit 59391f9

File tree

2 files changed

+30
-25
lines changed

2 files changed

+30
-25
lines changed

public/docs/dart/latest/_data.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"resources": {
1515
"icon": "play-circle-fill",
1616
"title": "Angular Resources",
17-
"banner": "Angular 2 is currently in Alpha Preview. For AngularDart 1.X please visit <a href='https://angulardart.org/'>angulardart.org</a>."
17+
"banner": "Angular 2 is currently in Alpha Preview. For AngularDart 1.X resources, visit <a href='https://angulardart.org/'>angulardart.org</a>."
1818
},
1919

2020
"api": {

public/docs/dart/latest/quickstart.jade

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
p.
2+
<strong>Angular 2 is currently in Alpha Preview.</strong>
3+
We recommend using
4+
<a href='https://angulardart.org'>Angular for Dart</a>
5+
for production applications.
6+
17
p.
28
These instructions assume that you already have the Dart SDK
39
and any tools you like to use with Dart.
410
If not, go
5-
<a href="https://www.dartlang.org/tools/download.html">download Dart</a>.
11+
<a href="https://www.dartlang.org/downloads/">download Dart</a>.
612
Then return here.
713

814
// STEP 1 - Create a project ##########################
@@ -37,19 +43,21 @@ p.
3743
pre.prettyprint.lang-basic
3844
code.
3945
&gt; pub get
40-
Resolving dependencies... (7.3s)
41-
+ angular2 2.0.0-alpha.6
42-
+ browser 0.10.0+2
43-
+ path 1.3.3
44-
+ stack_trace 1.2.3
45-
Changed 4 dependencies!
46+
Resolving dependencies... (2.7s)
47+
+ analyzer 0.24.1 (0.25.0-dev.3 available)
48+
... more messages ...
49+
Changed 21 dependencies!
50+
Precompiling dependencies...
51+
Loading source assets...
52+
Precompiled dart_style.
4653

4754
// PENDING: Create template? Link to pub/pubspec docs?
4855
// Is browser really needed?
4956
5057
.alert.is-helpful.
51-
Depending on your version of Dart, your version numbers (of angular2
52-
and other packages) might be higher than shown above. That's fine.
58+
Depending on your version of Dart and the latest version of angular2,
59+
your messages are probably going to be different from what's shown above.
60+
That's fine.
5361

5462

5563
// STEP 2 - Import Angular ##########################
@@ -228,16 +236,20 @@ p.
228236
You have several options for running your app.
229237
The quickest and easiest, for now,
230238
is to open your project in <b>Dart Editor</b>,
231-
right-click <code>web/index.html</code>,
239+
right-click <b>web/index.html</b>,
232240
and choose <b>Open in Dartium</b>.
241+
This starts a web server
242+
and opens your app in an experimental browser that contains the Dart VM.
233243

234244
// TODO: screenshot? embedded app?
235245
236246
p.
237247
Another option is to build and serve the app using <code>pub serve</code>,
238-
and then run it by visiting http://localhost:8080/index.html in a browser.
239-
The JavaScript generated using this option is large, for now;
240-
it'll be much better soon, when Angular's transformer becomes available.
248+
and then run it by visiting <b>http://localhost:8080</b> in a browser.
249+
Generating the JavaScript takes a few seconds when you first visit the page,
250+
and the generated JavaScript is currently large.
251+
The generated JavaScript will be smaller once
252+
Angular's transformer becomes available.
241253

242254
// [PENDING: Update when transformer is working!]
243255
@@ -246,14 +258,7 @@ p.
246258
h2#section-transpile Great job! Next step...
247259

248260
p.
249-
To try out the latest Angular 2 APIs,
250-
first download the <b>Dev channel</b> of Dart from the
251-
<a href="https://www.dartlang.org/tools/download-archive/">Dart
252-
Download Archive</a>.
253-
254-
p.
255-
Once you have the Dart Dev channel, use <b>pub upgrade</b>
256-
to get the latest version of Angular 2.
257-
258-
259-
// [PENDING: Perhaps point to dartlang.org.]
261+
We plan to add a developer guide soon.
262+
Until then, check out <a href="resources.html">Angular Resources</a>.
263+
To learn more about Dart, go to
264+
<a href="https://www.dartlang.org">dartlang.org</a>.

0 commit comments

Comments
 (0)