angular-docs-cn/modules/angular2
Vikram Subramanian 769835e53e feat(testing): Use NgZone in TestComponentBuilder.
Instantiating the test component within an NgZone will let us track async tasks in event handlers and change detection.

We can also do auto change detection when triggering events through dispatchEvent and not have to do fixture.detectChange() manually in the test.

New API:
ComponentFixture.autoDetectChanges() - This puts the fixture in auto detect mode that automatically calls detectChanges when the microtask queue is empty (Similar to how change detection is triggered in an actual application).

ComponentFixture.isStable() - This returns a boolean whether the fixture is currently stable or has some async tasks that need to be completed.

ComponentFixture.whenStable() - This returns a promise that is resolved when the fixture is stable after all async tasks are complete.

Closes #8301
2016-04-28 22:37:37 +00:00
..
animate cleanup(testing): create top level files for mocks 2015-11-24 19:29:52 +00:00
docs feat(core): separate refs from vars. 2016-04-28 01:13:40 +00:00
examples feat(core): separate refs from vars. 2016-04-28 01:13:40 +00: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 feat(testing): Use NgZone in TestComponentBuilder. 2016-04-28 22:37:37 +00:00
router feat(router): add regex matchers 2016-03-02 16:08:19 -08:00
src feat(testing): Use NgZone in TestComponentBuilder. 2016-04-28 22:37:37 +00:00
test feat(testing): Use NgZone in TestComponentBuilder. 2016-04-28 22:37:37 +00:00
web_worker refactor(core): support non reflective bootstrap. 2016-04-20 11:34:11 -07: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
alt_router.ts feat(router): add Router and RouterOutlet 2016-04-25 22:41:33 +00: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 feat(core): separate refs from vars. 2016-04-28 01:13:40 +00: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
router.ts refactor(Location): out of router and into platform/common 2016-04-20 04:28:47 +00:00
testing.ts feat(testing): Use NgZone in TestComponentBuilder. 2016-04-28 22:37:37 +00: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

README.js.md

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