angular-docs-cn/modules/@angular
Georgios Kalpakas 1f90f29369 feat(upgrade): return a function (instead of array) from `downgradeInjectable()` (#14037)
This makes it more consistent with the dynamic version of `upgrade` and makes it
possible to share code between the dynamic and static versions.

This commit also refactors the file layout, moving common and dynamic-specific
files to `common/` and `dynamic/` directories respectively and renaming `aot/`
to `static/`.

Some private keys, used as AngularJS DI tokens, have also been renamed, but this
should  not affect apps, since these keys are undocumented and not supposed to
be used externally.

BREAKING CHANGE:

Previously, `upgrade/static/downgradeInjectable` returned an array of the form:

```js
['dep1', 'dep2', ..., function factory(dep1, dep2, ...) { ... }]
```

Now it returns a function with an `$inject` property:

```js
factory.$inject = ['dep1', 'dep2', ...];
function factory(dep1, dep2, ...) { ... }
```

It shouldn't affect the behavior of apps, since both forms are equally suitable
to be used for registering AngularJS injectable services, but it is possible
that type-checking might fail or that current code breaks if it relies on the
returned value being an array.
2017-02-01 09:29:51 -06:00
..
benchpress docs: branding fixes (#14132) 2017-01-27 15:03:11 -06:00
common fix(common): introduce isObservable method (#14067) 2017-01-31 12:14:19 -06:00
compiler fix(compiler): allow expressions or functions in extends (#14158) 2017-01-31 18:35:10 -06:00
compiler-cli docs: branding fixes (#14132) 2017-01-27 15:03:11 -06:00
core feat(core): view engine - add debug information (#14197) 2017-01-31 16:21:54 -06:00
docs docs: branding fixes (#14132) 2017-01-27 15:03:11 -06:00
examples docs: branding fixes (#14132) 2017-01-27 15:03:11 -06:00
facade chore(docs): add missing comments (#14003) 2017-01-19 12:06:28 -08:00
forms fix: lint errors to make circle-ci green 2017-01-31 19:01:48 -06:00
http fix(http): use params without RequestOptions (#14101) 2017-01-31 15:44:49 -06:00
language-service fix(language-service): do not crash when Angular cannot be located (#14123) 2017-01-31 15:45:52 -06:00
platform-browser fix(platform-browser): remove style nodes on destroy (#13744) 2017-01-29 12:10:44 -06:00
platform-browser-dynamic chore(tslint): update tslint to 4.x (#13603) 2016-12-27 14:55:58 -08:00
platform-server fix(core): animations no longer silently exits if the element is not apart of the DOM (#13763) 2017-01-05 11:33:40 -08:00
platform-webworker feat(core): Add type information to injector.get() (#13785) 2017-01-17 15:34:54 -06:00
platform-webworker-dynamic chore(tslint): update tslint to 4.x (#13603) 2016-12-27 14:55:58 -08:00
router feat(router): deprecate preserveQueryParams,add queryParamsHandling (#14095) 2017-01-31 15:43:25 -06:00
upgrade feat(upgrade): return a function (instead of array) from `downgradeInjectable()` (#14037) 2017-02-01 09:29:51 -06:00
README.md docs: update README.md for npm packages 2016-09-14 17:14:02 -07:00
license-banner.txt style(docs): update copyright years (#13736) 2017-01-27 20:47:14 -08:00
router-license-banner.txt style(docs): update copyright years (#13736) 2017-01-27 20:47:14 -08:00

README.md

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

License: MIT