angular-docs-cn/packages/examples
Tobias Bosch 9429032da1 feat(upgrade): use `ComponentFactory.inputs/outputs/ngContentSelectors` (#15214)
DEPRECATION:
- the arguments `inputs` / `outputs` / `ngContentSelectors` of `downgradeComponent`
  are no longer used as Angular calculates these automatically now.
- Compiler.getNgContentSelectors is deprecated. Use
  ComponentFactory.ngContentSelectors instead.
2017-03-17 13:52:50 -05:00
..
_common refactor(platform-browser): move platform-browser/animations to animations/browser (#15130) 2017-03-14 11:55:49 -07:00
common feat(common): support `as` syntax in template/* bindings (#15025) 2017-03-14 20:46:29 -07:00
compiler/ts/url_resolver refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
core refactor(platform-browser): move platform-browser/animations to animations/browser (#15130) 2017-03-14 11:55:49 -07:00
forms/ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
http/ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
platform-browser/dom/debug/ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
testing/ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
upgrade/static/ts feat(upgrade): use `ComponentFactory.inputs/outputs/ngContentSelectors` (#15214) 2017-03-17 13:52:50 -05:00
web_workers/ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
README.md refactor: update paths from modules/@angular to packages 2017-03-08 16:29:28 -08:00
build.sh build: fix paths for examples tests 2017-03-08 16:29:28 -08:00
test.sh build: fix paths for examples tests 2017-03-08 16:29:28 -08:00
tsconfig-build.json build: fix file paths after moving modules/@angular/* to packages/* 2017-03-08 16:29:28 -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
./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)