Go to file
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
.github Update ISSUE_TEMPLATE.md 2016-03-23 12:53:10 -07:00
modules feat(testing): Use NgZone in TestComponentBuilder. 2016-04-28 22:37:37 +00:00
modules_dart chore(testing): Refactor test methods to have a uniform interface. 2016-04-28 01:16:25 +00:00
scripts fix(changelog): fix changelog script. 2016-04-26 16:12:59 -07:00
tools fix(metadata): Do not attach module names to metadata. 2016-04-28 01:58:13 +00:00
typing_spec chore(test.typings): instrument against examples folder 2016-03-24 19:25:07 +00: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: add .gitattributes with new lines config 2015-01-06 18:06:13 -08:00
.gitignore fix(build): publish typings directory to our npm snapshot branch 2016-02-11 11:35:43 -08:00
.nvmrc build(node): upgrade to node 5.4.1 2016-01-22 03:25:34 +00:00
.travis.yml fix(tests): remove payload size check 2016-04-18 17:08:55 -07:00
CHANGELOG.md docs(changelog): update change log to 2.0.0-beta.17. 2016-04-28 11:47:32 -07:00
COMMITTER.md chore(docs): update the merge process docs 2015-12-23 02:32:02 +00:00
CONTRIBUTING.md docs(CONTRIBUTING.md): clarify the difference between build and ci commit message scopes 2016-03-05 19:54:22 +00:00
DEVELOPER.md docs(developer): add linting instructions 2016-02-02 11:34:00 -08:00
LICENSE Update change from Apache to MIT license 2016-01-08 13:41:58 -08:00
NAMING.md refactor(ngProbe): rename to ng.probe 2015-08-31 21:32:10 +00:00
README.md Update README.md 2015-12-15 12:38:48 -08:00
TOOLS.md feat(docs): document change detection profiler 2015-09-04 16:38:53 -07:00
TOOLS_DART.md fix(docs): fix an import in TOOLS_DART.md 2015-12-17 23:30:44 +00:00
TOOLS_JS.md chore(core): remove @View annotation 2016-03-14 23:26:20 +00:00
TRIAGE_AND_LABELS.md chore(docs): explain the process for merging changes to master 2015-08-11 21:28:46 +00:00
bower.json fix(benchmarks): update react and polymer benchmarks and get tree update numbers for all of the benchmarks as well. 2015-10-28 13:17:01 -07:00
browser-providers.conf.js chore(build): disable broken FirefoxBeta on SauceLabs 2016-03-11 10:57:44 -08:00
circle.yml fix(circle): pre-dependencies `npm install npm` 2016-02-01 11:26:25 -08:00
gulpfile.js refactor(view_compiler): codegen DI and Queries 2016-04-13 14:43:48 -07:00
karma-js.conf.js feat(test): Implement fakeAsync using the FakeAsyncTestZoneSpec from zone.js. 2016-04-21 22:11:00 +00:00
npm-shrinkwrap.clean.json build(npm): update rxjs to 5.0.0-beta.6 2016-04-26 21:16:37 +00:00
npm-shrinkwrap.json chore(release): bump version to 2.0.0-beta.17. 2016-04-28 11:39:20 -07:00
npm-shrinkwrap.readme.md build(npm): add tools/npm/reshrinkwrap script and update docs 2016-01-22 03:25:33 +00:00
package.json chore(release): bump version to 2.0.0-beta.17. 2016-04-28 11:39:20 -07:00
perf-cloud-secret.template.js refactor(build): support multiple configurable browsers for e2e and perf tests 2015-01-20 13:06:37 -08:00
protractor-dart2js.conf.js chore: rename modules/examples to modules/playground 2015-10-18 11:48:43 +00:00
protractor-ddc.conf.js chore(ddc): add e2e test infra + first test 2016-03-22 22:09:33 +00:00
protractor-js-dev.conf.js chore(test): setup a gulp task for quickly running e2e tests against the dev server 2015-06-11 16:58:32 -07:00
protractor-js-prod.conf.js chore(build): add a task to watch and render examples and e2e tests for production 2015-06-19 18:57:41 -04:00
protractor-js.conf.js Revert "chore(benchmarks): disable broken benchmarks" 2015-08-21 05:59:53 +00:00
protractor-shared.js chore(build): use Chromium in Travis for JS tests 2016-03-01 11:24:44 -08:00
pubspec.yaml chore(test): migrate Dart tests to package:test 2016-03-04 02:27:44 +00:00
test-main.js chore(): remove all angular2_material code. 2016-03-16 13:37:37 -07:00
tsconfig.json tools: updated the VS Code config 2015-07-07 08:17:58 -07:00

README.md

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

Angular

Angular is a development platform for building mobile and desktop web applications. This is the repository for Angular 2, both the JavaScript (JS) and Dart versions.

Angular 2 is currently in Beta.

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.