angular-cn/modules/@angular/examples
Misko Hevery 2a5012d515 chore: Add @types/systemjs 2016-12-12 11:19:05 -08:00
..
_common Keep `console.log` that are not called during compilation. 2016-11-23 15:47:02 -08:00
common chore: convert hash_location_strategy example to a tested spec 2016-12-12 11:19:05 -08:00
compiler/ts/url_resolver refactor(): use const and let instead of var 2016-11-12 16:40:17 -08:00
core refactor(): use const and let instead of var 2016-11-12 16:40:17 -08:00
facade/ts/async refactor(lint): Don't allow console.log 2016-11-23 15:47:01 -08:00
forms/ts refactor(lint): Don't allow console.log 2016-11-23 15:47:01 -08:00
http/ts repackaging: all the file moves 2016-05-01 20:51:00 -07:00
platform-browser/dom/debug/ts refactor(): use const and let instead of var 2016-11-12 16:40:17 -08:00
testing/ts refactor(): use const and let instead of var 2016-11-12 16:40:17 -08:00
upgrade/static/ts chore(examples): add upgrade/static example 2016-11-16 09:18:10 -08:00
web_workers/ts repackaging: all the file moves 2016-05-01 20:51:00 -07:00
README.md style: clang-format the code 2016-12-09 11:19:55 -08:00
build.sh chore(examples): support upgrade/static examples 2016-11-16 09:18:10 -08:00
test.sh fix(build): test example directories with unit and e2e tests (#11296) 2016-09-07 16:04:33 -07:00
tsconfig-build.json chore: Add @types/systemjs 2016-12-12 11:19:05 -08:00

README.md

API Examples

This folder contains small example apps that get in-lined into our API docs. Each example contains tests for application behavior (as opposed to testing Angular's behavior) just like an Angular application developer would write.

Running the examples

# # execute the following command only when framework code changes
./build.sh

# run when test change
./modules/@angular/examples/build.sh  

# start server
$(npm bin)/gulp serve-examples

navigate to http://localhost:8001

Running the tests

 # run only when framework code changes
./build.sh

# run to compile tests and run them
./modules/@angular/examples/test.sh

NOTE: sometimes the http server does not exit properly and it retains the 8001 port. in such a case you can use lsof -i:8001 to see which process it is and then use kill to remove it. (Or in single command: lsof -i:8001 -t | xargs kill)