| 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 | |
| 16 $ pub serve | |
| 17 ``` | |
| 18 | |
| 19 Finally, open `http://localhost:8080/todo.html.` | |
| 20 | |
| 21 The server is optional | |
| 22 ---------------------- | |
| 23 | |
| 24 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 / | |
| 26 playback feature, snapshotting and dart2js. | |
| 27 | |
| 28 ``` | |
| 29 $ cd example | |
| 30 $ node webserver.js | |
| 31 Web server is listening on port 3000 | |
| 32 ``` | |
| 33 | |
| 34 To use dart2js, open http://localhost:3000/todo.html in a non-Dartium web | |
| 35 browser. | |
| 36 | |
| 37 To use snapshotting, open http://localhost:3000/snapshot/todo.html, which | |
| 38 will serve a zip file with all the files used in the application. | |
| 39 | |
| 40 To use HTTP record / playback, first open http://localhost:3000/todo.html?record
. | |
| 41 Then, without restarting the server, open http://localhost:3000/todo.html?playba
ck. | |
| 42 | |
| 43 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 | |
| OLD | NEW |