angular-docs-cn/packages/examples
George Kalpakas 93837e9545 feat(upgrade): support downgrading multiple modules (#26217)
Currently, calling `downgradeModule()` more than once is not supported.
If one wants to downgrade multiple Angular modules, they can create a
"super-module" that imports all the rest and downgrade that.

This commit adds support for downgrading multiple Angular modules. If
multiple modules are downgraded, then one must explicitly specify the
downgraded module that each downgraded component or injectable belongs
to, when calling `downgradeComponent()` and `downgradeInjectable()`
respectively.

No modification is needed (i.e. there is no need to specify a module for
downgraded components and injectables), if an app is not using
`downgradeModule()` or if there is only one downgraded Angular module.

Fixes #26062

PR Close #26217
2018-11-05 16:33:55 -08:00
..
_common feat(core): upgrade rxjs to 6.0.0-alpha.4 (#22573) 2018-03-19 21:51:51 -07:00
common docs: tests for number/percent/currency pipe (#25028) 2018-07-23 13:18:23 -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 fix(core): In Testability.whenStable update callback, pass more complete (#25010) 2018-08-06 13:49:19 -07:00
forms/ts feat(forms): add updateOn option to FormBuilder (#24599) 2018-11-01 15:31:11 -07: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 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 feat(upgrade): support downgrading multiple modules (#26217) 2018-11-05 16:33:55 -08: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 test: minor improvements in examples e2e tests script (#18487) (#18487) 2018-06-27 15:01:47 -07:00
test.sh test: minor improvements in examples e2e tests script (#18487) (#18487) 2018-06-27 15:01:47 -07:00
tsconfig-build.json build: upgrade `@types/jasminewd2` to 2.0.4 (#26139) 2018-10-12 14:11:11 -07:00
tsconfig.json build: upgrade `@types/jasminewd2` to 2.0.4 (#26139) 2018-10-12 14:11:11 -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)