|
| 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 | + |
1 | 7 | p.
|
2 | 8 | These instructions assume that you already have the Dart SDK
|
3 | 9 | and any tools you like to use with Dart.
|
4 | 10 | 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>. |
6 | 12 | Then return here.
|
7 | 13 |
|
8 | 14 | // STEP 1 - Create a project ##########################
|
|
37 | 43 | pre.prettyprint.lang-basic
|
38 | 44 | code.
|
39 | 45 | > 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. |
46 | 53 |
|
47 | 54 | // PENDING: Create template? Link to pub/pubspec docs?
|
48 | 55 | // Is browser really needed?
|
49 | 56 |
|
50 | 57 | .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. |
53 | 61 |
|
54 | 62 |
|
55 | 63 | // STEP 2 - Import Angular ##########################
|
|
228 | 236 | You have several options for running your app.
|
229 | 237 | The quickest and easiest, for now,
|
230 | 238 | 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>, |
232 | 240 | 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. |
233 | 243 |
|
234 | 244 | // TODO: screenshot? embedded app?
|
235 | 245 |
|
236 | 246 | p.
|
237 | 247 | 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. |
241 | 253 |
|
242 | 254 | // [PENDING: Update when transformer is working!]
|
243 | 255 |
|
|
246 | 258 | h2#section-transpile Great job! Next step...
|
247 | 259 |
|
248 | 260 | 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