angular/modules/angular2
Vikram Subramanian bab81a9831 feat(test): Implement fakeAsync using the FakeAsyncTestZoneSpec from zone.js.
Update the version of zone.js to @0.6.12 that contains the new FakeAsyncTestZoneSpec.

The new fakeAsync zone handles errors better and clearPendingTimers() is no longer required to be called after handling an error and is deprecated.

The fakeAsync test zone will now throw an error if an XHR is attemtped within the test since that cannot be controlled synchronously in the test(Need to be mocked out with a service implementation that doesn't involve XHRs).

This commit also allows fakeAsync to wrap inject to make it consistent with async test zone.

BREAKING CHANGE:

inject can no longer wrap fakeAsync while fakeAsync can wrap inject. So the order in existing tests with inject and fakeAsync has to be switched as follows:

Before:
```
inject([...], fakeAsync((...) => {...}))
```

After:
```
fakeAsync(inject([...], (...) => {...}))
```

Closes #8142
2016-04-21 22:11:00 +00:00
..
animate cleanup(testing): create top level files for mocks 2015-11-24 19:29:52 +00:00
docs docs(cheatsheet/dart): fix imports 2016-04-07 21:23:14 +00:00
examples refactor(core): support non reflective bootstrap. 2016-04-20 11:34:11 -07:00
http cleanup(testing): create top level files for mocks 2015-11-24 19:29:52 +00:00
manual_typings fix(typings): Don't expose typing dependencies to users. 2016-02-04 22:42:40 +00:00
platform refactor(core): support non reflective bootstrap. 2016-04-20 11:34:11 -07:00
router feat(router): add regex matchers 2016-03-02 16:08:19 -08:00
src feat(test): Implement fakeAsync using the FakeAsyncTestZoneSpec from zone.js. 2016-04-21 22:11:00 +00:00
test feat(test): Implement fakeAsync using the FakeAsyncTestZoneSpec from zone.js. 2016-04-21 22:11:00 +00:00
web_worker refactor(core): support non reflective bootstrap. 2016-04-20 11:34:11 -07:00
angular2.dart refactor(core): support non reflective bootstrap. 2016-04-20 11:34:11 -07:00
animate.ts feat(animate): adds basic support for CSS animations on enter and leave 2015-09-14 17:37:09 +00:00
common.ts refactor(Location): out of router and into platform/common 2016-04-20 04:28:47 +00:00
compiler.ts refactor(view_compiler): codegen DI and Queries 2016-04-13 14:43:48 -07:00
core.dart refactor(core): support non reflective bootstrap. 2016-04-20 11:34:11 -07:00
core.ts refactor(core): support non reflective bootstrap. 2016-04-20 11:34:11 -07:00
http.ts revert(format): Revert "chore(format): update to latest formatter" 2016-04-12 09:41:01 -07:00
i18n.ts feat(i18n): reexport I18nHtmlParser through the i18n barrel 2016-03-28 19:54:13 +00:00
instrumentation.ts revert(format): Revert "chore(format): update to latest formatter" 2016-04-12 09:41:01 -07:00
package.json fix(package.json): remove es6-promise from the peerDependency list 2016-03-22 01:53:35 +00:00
pubspec.yaml fix(dart) reverts protobuf to last working version 2016-04-18 18:28:43 +00:00
README.dart.md feat(publish): update files to publish to npm 2015-02-24 16:53:44 -08:00
README.js.md chore(build): remove es5build.js 2015-11-06 18:22:57 +00:00
router.ts refactor(Location): out of router and into platform/common 2016-04-20 04:28:47 +00:00
testing.ts chore(test): remove deprecated RootTestComponent 2015-12-02 15:00:55 -08:00
testing_internal.ts refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
tsconfig.json fix(setup): set tsconfig so that it works in editors 2015-11-09 08:43:15 -08:00
tsd.json chore: upgrade to new Zone.js API v0.6.2 2016-03-16 18:05:09 +00:00
upgrade.ts chore(ngUpgrade): Move into Angular2 2015-10-31 20:48:27 -07:00

Angular2

The sources for this package are in the main Angular2 repo. Please file issues and pull requests against that repo. This is the repository for the upcoming 2.0 version. If you're looking for the current official version of Angular you should go to angular/angular.js

This package contains different sources for different users:

  1. The files located in the root folder can be consumed using CommonJS.
  2. The files under /es6 are es6 compatible files that can be transpiled to es5 using any transpiler. This contains:
    • dev/: a development version that includes runtime type assertions
    • prod/: a production version that does not include runtime type assertions
  3. The files under /ts are the TypeScript source files.

License: Apache MIT 2.0