Go to file
vsavkin ed4826b08c feat(forms): Implement a way to manually set errors on a control
Example:

var login = new Control("someLogin");
c.setErrors({"notUnique": true});
expect(c.valid).toEqual(false);
expect(c.errors).toEqual({"notUnique": true});

c.updateValue("newLogin");
expect(c.valid).toEqual(true);

BREAKING CHANGE:

Before:

ControlGroup.errors and ControlArray.errors returned a reduced value of their children controls' errors.

After:

ControlGroup.errors and ControlArray.errors return the errors of the group and array.
And ControlGroup.controlsErrors and ControlArray.controlsErrors return the reduce value of their children controls' errors.

Closes #4917
2015-10-27 19:31:25 +00:00
.settings
docs refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
modules feat(forms): Implement a way to manually set errors on a control 2015-10-27 19:31:25 +00:00
modules_dart feat(dart/transform): Do not declare outputs 2015-10-21 14:20:03 -07:00
scripts chore: remove unused docs/dgeni tasks and packages 2015-10-06 22:54:17 +00:00
tools feat(ngUpgrade): simple example 2015-10-19 12:43:28 -07:00
typing_spec feat(di): rename Binding into Provider 2015-10-11 05:13:31 +00:00
.bowerrc
.clang-format
.editorconfig
.gitattributes
.gitignore build(analytics): add basic build-analytics to the project 2015-10-12 03:50:00 +00:00
.nvmrc build(node): update node from 4.1.1 to 4.2.1 2015-10-27 14:15:54 +00:00
.travis.yml build(node): update node from 4.1.1 to 4.2.1 2015-10-27 14:15:54 +00:00
CHANGELOG.md chore: update v2.0.0-alpha.44 changelog 2015-10-15 16:38:08 -07:00
COMMITTER.md
CONTRIBUTING.md
DEVELOPER.md build(node): update node from 4.1.1 to 4.2.1 2015-10-27 14:15:54 +00:00
LICENSE
NAMING.md refactor(ngProbe): rename to ng.probe 2015-08-31 21:32:10 +00:00
README.md chore(saucelabs): add matrix badge to README.md 2015-09-29 10:03:45 +02:00
TOOLS.md feat(docs): document change detection profiler 2015-09-04 16:38:53 -07:00
TOOLS_DART.md docs: edit DART_TOOLS.md 2015-10-27 17:58:33 +00:00
TOOLS_JS.md feat(docs): document change detection profiler 2015-09-04 16:38:53 -07:00
TRIAGE_AND_LABELS.md
bower.json
gulpfile.js chore(gulpfile): fix link to clang formatting 2015-10-27 09:59:52 -07:00
karma-dart-evalcache.js fix(karma-dart-evalcache): make the code compatible with karma 0.13.x 2015-10-03 21:33:57 +00:00
karma-dart.conf.js fix(tests): fix tests 2015-10-08 13:54:44 -07:00
karma-js.conf.js chore(karma): exclude e2e examples from unit tests 2015-10-27 14:12:55 +00:00
npm-shrinkwrap.clean.json chore(package): bump reflect-metadata version 2015-10-27 13:34:41 +00:00
npm-shrinkwrap.json chore(package): bump reflect-metadata version 2015-10-27 13:34:41 +00:00
npm-shrinkwrap.readme.md
package.json chore(package): bump reflect-metadata version 2015-10-27 13:34:41 +00:00
perf-cloud-secret.template.js
protractor-dart2js.conf.js chore: rename modules/examples to modules/playground 2015-10-18 11:48:43 +00:00
protractor-js-dev.conf.js
protractor-js-prod.conf.js
protractor-js.conf.js
protractor-shared.js chore(ci): update Protractor version, remove custom waits 2015-10-07 13:08:58 -07:00
pubspec.yaml chore(pub): upgrade observe dependency 2015-10-08 06:35:38 +00:00
sauce.conf.js chore(saucelabs): update to Safari 9 2015-10-27 11:34:24 +00:00
test-init.dart
test-main.dart refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
test-main.js chore: remove dead code 2015-10-06 10:12:53 -07:00
tsconfig.json

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 Developer Preview. We recommend using Angular 1.X for production applications:

Quickstart

Get started in 5 minutes.

Setup & Install Angular 2

Follow the instructions given on the Angular download page.

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.