| OLD | NEW |
| 1 Angular.dart's Todo Demo | 1 Angular.dart's Todo Demo |
| 2 ======================== | 2 ======================== |
| 3 | 3 |
| 4 This demo is the most complete demo in the repository and a great | 4 This demo is the most complete demo in the repository and a great |
| 5 starting point for quickly understanding Angular.dart | 5 starting point for quickly understanding Angular.dart |
| 6 | 6 |
| 7 Getting up and running | 7 Getting up and running |
| 8 ---------------------- | 8 ---------------------- |
| 9 | 9 |
| 10 To run this demo, first clone the entire Angular.dart repository. | 10 To run this demo, first clone the entire Angular.dart repository. |
| 11 | 11 |
| 12 Then, run `pub serve` in this directory: | 12 Then, run ``pub serve`` in this directory: |
| 13 | 13 |
| 14 ``` | 14 ``` |
| 15 $ cd demo | 15 $ cd demo/todo; pub serve |
| 16 $ pub serve | |
| 17 ``` | 16 ``` |
| 18 | 17 |
| 19 Finally, open `http://localhost:8080/todo.html.` | 18 Finally, open http://localhost:8080/index.html. |
| 20 | 19 |
| 21 The server is optional | 20 The server is optional |
| 22 ---------------------- | 21 ---------------------- |
| 23 | 22 |
| 24 There is a simple Node.js server in this directory, but you do | 23 There is a simple Node.js server in this directory, but you do |
| 25 not need to run it. It is here to demonstrate the HTTP record / | 24 not need to run it. It is here to demonstrate the HTTP record / |
| 26 playback feature, snapshotting and dart2js. | 25 playback feature, snapshotting and dart2js. |
| 27 | 26 |
| 28 ``` | 27 ``` |
| 29 $ cd example | 28 $ cd demo/todo; node webserver.js |
| 30 $ node webserver.js | |
| 31 Web server is listening on port 3000 | 29 Web server is listening on port 3000 |
| 32 ``` | 30 ``` |
| 33 | 31 |
| 34 To use dart2js, open http://localhost:3000/todo.html in a non-Dartium web | 32 To use dart2js, open http://localhost:3000/index.html in a non-Dartium web |
| 35 browser. | 33 browser. |
| 36 | 34 |
| 37 To use snapshotting, open http://localhost:3000/snapshot/todo.html, which | 35 To use snapshotting, open http://localhost:3000/snapshot/index.html, which |
| 38 will serve a zip file with all the files used in the application. | 36 will serve a zip file with all the files used in the application. |
| 39 | 37 |
| 40 To use HTTP record / playback, first open http://localhost:3000/todo.html?record
. | 38 To use HTTP record / playback, first open http://localhost:3000/index.html?recor
d. |
| 41 Then, without restarting the server, open http://localhost:3000/todo.html?playba
ck. | 39 Then, without restarting the server, open http://localhost:3000/index.html?playb
ack. |
| 42 | 40 |
| 43 For more awesomeness, use HTTP playback together with snapshotting to isolate yo
ur | 41 For more awesomeness, use HTTP playback together with snapshotting to isolate yo
ur |
| 44 Dart application from the server. http://localhost:3000/snapshot/todo.html?playb
ack | 42 Dart application from the server. http://localhost:3000/snapshot/index.html?play
back |
| OLD | NEW |