Go to file
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
.github docs(gh): try to improve the issue template (#11891) 2016-09-30 16:40:56 -07:00
angular.io ci(aio): fix and enable e2e tests on Travis (#14174) 2017-01-31 21:59:37 -08:00
docs docs(public_api): change description (#13583) 2017-01-27 20:52:02 -08:00
integration fix: failing integration test 2017-01-31 16:29:13 -08:00
modules feat(upgrade): return a function (instead of array) from `downgradeInjectable()` (#14037) 2017-02-01 09:29:51 -06:00
scripts ci(aio): fix and enable e2e tests on Travis (#14174) 2017-01-31 21:59:37 -08:00
tools feat(upgrade): return a function (instead of array) from `downgradeInjectable()` (#14037) 2017-02-01 09:29:51 -06:00
.bowerrc chore(dgeni): clean up legacy typings bundle creation 2015-10-29 21:19:59 +00:00
.clang-format feat(tooling): Add a .clang-format for automated JavaScript formatting. 2015-04-02 08:44:34 -07:00
.editorconfig chore(.editorconfig): include markdown config 2015-01-27 00:14:48 -08:00
.gitattributes chore: force lf EOL for ts files (#11143) 2016-08-29 12:41:58 -07:00
.gitignore ci(aio): deploy from CI to staging 2017-01-27 13:55:58 -08:00
.nvmrc chore(node): allow current node version 2016-09-19 16:24:31 -07:00
.pullapprove.yml ci: fix .pullapprove.yaml's`file` conditions (#14214) 2017-01-31 22:15:19 -08:00
.travis.yml build: fix red travis: fetch more github history (#14193) 2017-01-30 14:55:00 -08:00
CHANGELOG.md style: fix typo in CHANGELOG.md (#14009) 2017-01-27 20:29:17 -08:00
COMMITTER.md docs: update COMITTER.md with info about pullapprove.com 2017-01-27 21:23:21 -08:00
CONTRIBUTING.md ci: add support for 'aoi' scope in commit messages for angular.io 2017-01-25 17:38:33 -08:00
DEVELOPER.md docs(developer): add description of `npm-run` to run locally installed `npm` scripts (#13765) 2017-01-29 12:12:38 -06:00
LICENSE style(docs): update copyright years (#13736) 2017-01-27 20:47:14 -08:00
NAMING.md docs: branding fixes (#14132) 2017-01-27 15:03:11 -06:00
README.md docs: branding fixes (#14132) 2017-01-27 15:03:11 -06:00
SAVED_REPLIES.md docs(saved-replies): order the replies as shown in github (#12153) 2016-10-07 13:52:18 -07:00
TOOLS.md docs: branding fixes (#14132) 2017-01-27 15:03:11 -06:00
TRIAGE_AND_LABELS.md docs: branding fixes (#14132) 2017-01-27 15:03:11 -06:00
bower.json docs: branding fixes (#14132) 2017-01-27 15:03:11 -06:00
browser-providers.conf.js ci(browser providers): update browsers in SL and BS (#13431) 2016-12-13 11:32:31 -08:00
build.sh build: move typings_test to new integration test fixture (#14149) 2017-01-31 15:46:59 -06:00
circle.yml ci: bump node and npm versions in circle.yaml to match travis 2017-01-23 10:51:28 -08:00
gulpfile.js build(aio): move doc-gen stuff from angular.io (#14097) 2017-01-26 23:46:59 -08:00
karma-js.conf.js fix(upgrade): fix `registerForNg1Tests` (#13522) 2016-12-16 15:14:16 -08:00
npm-shrinkwrap.clean.json test(integration): add an env for testing closure builds (#14130) 2017-01-27 09:17:50 -08:00
npm-shrinkwrap.json test(integration): add an env for testing closure builds (#14130) 2017-01-27 09:17:50 -08:00
npm-shrinkwrap.readme.md chore(lint): replace gulp check-task with tslint no-jasmine-focus rule 2016-10-28 15:53:15 -07:00
package.json docs: branding fixes (#14132) 2017-01-27 15:03:11 -06:00
protractor-e2e.conf.js refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
protractor-examples-e2e.conf.js refactor: format and lint code 2016-12-12 11:30:25 -08:00
protractor-perf.conf.js refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
publish-packages.sh fix: display framework version on bootstrapped component (#13252) 2016-12-06 16:21:07 -08:00
shims_for_IE.js Revert "refactor: add license header to JS files & format files (#12035)" 2016-10-04 14:06:41 -07:00
test-main.js fix: correctly show error when karma fails to load 2017-01-06 19:30:09 -05:00
test.sh refactor(compiler): remove unneeded fields from metadata 2016-11-28 15:19:23 -08:00
tslint.json build(tslint): enable no-inner-declarations (#13316) 2016-12-08 13:46:08 -08:00

README.md

Build Status CircleCI Join the chat at https://gitter.im/angular/angular Issue Stats Issue Stats npm version

Sauce Test Status Safari (7+), iOS (7+), Edge (14) and IE mobile (11) are tested on BrowserStack.

Angular

Angular is a development platform for building mobile and desktop web applications using Typescript/JavaScript (JS) and other languages.

Quickstart

Get started in 5 minutes.

Want to help?

Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues in the hotlist: community-help.