angular-cn/packages/examples
sergeome 7966744a44 fix(common): titlecase pipe (#22600)
PR Close #22600
2018-03-23 13:42:51 -04:00
..
_common feat(core): upgrade rxjs to 6.0.0-alpha.4 (#22573) 2018-03-19 21:51:51 -07:00
common fix(common): titlecase pipe (#22600) 2018-03-23 13:42:51 -04:00
compiler/ts/url_resolver
core feat(core): add task tracking to Testability (#16863) 2018-03-14 08:48:48 -07:00
forms/ts
http/ts
platform-browser/dom/debug/ts fix: Update types for TypeScript nullability support in examples 2017-04-12 11:36:19 -07:00
testing/ts docs(core): move core examples into `examples/core/` directory 2017-12-18 12:10:29 -08:00
upgrade/static/ts style: fix typos boostrap to bootstrap (#21917) 2018-02-15 09:54:00 -08:00
web_workers/ts
README.md
build.sh build: enable importHelpers in tsconfig (#22812) 2018-03-15 21:16:03 -07:00
test.sh
tsconfig-build.json build: publish tree of files rather than FESMs (#18541) 2017-08-31 15:34:50 -07: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
./packages/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
./packages/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)