| 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 install in this directory: | 12 Then, run ``pub serve`` in this directory: |
| 13 | 13 |
| 14 ``` | 14 ``` |
| 15 $ cd demo/todo; pub install | 15 $ cd demo/todo; pub serve |
| 16 ``` | 16 ``` |
| 17 | 17 |
| 18 Finally, open the demo/todo/index.html file in Dartium. | 18 Finally, open http://localhost:8080/index.html. |
| 19 | 19 |
| 20 The server is optional | 20 The server is optional |
| 21 ---------------------- | 21 ---------------------- |
| 22 | 22 |
| 23 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 |
| 24 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 / |
| 25 playback feature, snapshotting and dart2js. | 25 playback feature, snapshotting and dart2js. |
| 26 | 26 |
| 27 ``` | 27 ``` |
| 28 $ cd demo/todo; node webserver.js | 28 $ cd demo/todo; node webserver.js |
| 29 Web server is listening on port 3000 | 29 Web server is listening on port 3000 |
| 30 ``` | 30 ``` |
| 31 | 31 |
| 32 To use dart2js, open http://localhost:3000/index.html in a non-Dartium web | 32 To use dart2js, open http://localhost:3000/index.html in a non-Dartium web |
| 33 browser. | 33 browser. |
| 34 | 34 |
| 35 To use snapshotting, open http://localhost:3000/snapshot/index.html, which | 35 To use snapshotting, open http://localhost:3000/snapshot/index.html, which |
| 36 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. |
| 37 | 37 |
| 38 To use HTTP record / playback, first open http://localhost:3000/index.html?recor
d. | 38 To use HTTP record / playback, first open http://localhost:3000/index.html?recor
d. |
| 39 Then, without restarting the server, open http://localhost:3000/index.html?playb
ack. | 39 Then, without restarting the server, open http://localhost:3000/index.html?playb
ack. |
| 40 | 40 |
| 41 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 |
| 42 Dart application from the server. http://localhost:3000/snapshot/index.html?play
back | 42 Dart application from the server. http://localhost:3000/snapshot/index.html?play
back |
| OLD | NEW |