| OLD | NEW |
| (Empty) |
| 1 Angular.dart's Todo Demo | |
| 2 ======================== | |
| 3 | |
| 4 This demo is the most complete demo in the repository and a great | |
| 5 starting point for quickly understanding Angular.dart | |
| 6 | |
| 7 Getting up and running | |
| 8 ---------------------- | |
| 9 | |
| 10 To run this demo, first clone the entire Angular.dart repository. | |
| 11 | |
| 12 Then, run ``pub serve`` in this directory: | |
| 13 | |
| 14 ``` | |
| 15 $ cd demo/todo; pub serve | |
| 16 ``` | |
| 17 | |
| 18 Finally, open http://localhost:8080/index.html. | |
| 19 | |
| 20 The server is optional | |
| 21 ---------------------- | |
| 22 | |
| 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 / | |
| 25 playback feature, snapshotting and dart2js. | |
| 26 | |
| 27 ``` | |
| 28 $ cd demo/todo; node webserver.js | |
| 29 Web server is listening on port 3000 | |
| 30 ``` | |
| 31 | |
| 32 To use dart2js, open http://localhost:3000/index.html in a non-Dartium web | |
| 33 browser. | |
| 34 | |
| 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. | |
| 37 | |
| 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. | |
| 40 | |
| 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 | |
| OLD | NEW |