angular-docs-cn/modules/angular2
Ted Sander 28d88c5b12 feat(validators): Allow errors at both the group/array level or their children
Allow ControlGroups and ControlArrays to contain errors from their level, and
errors from their children. [Design Doc](https://docs.google.com/document/d/1EnJ3-_iFpVKFz1ifN1LkXSGQ7h3A72OQGry2g8eo7IA/edit?pli=1#heading=h.j53rt81eegm4)

BREAKING CHANGE: errors format has changed from validators. Now errors from
a control or an array's children are prefixed with 'controls' while errors
from the object itself are left at the root level.
Example:
Given a Control group as follows:
var group = new ControlGroup({
  login: new Control("", required),
  password: new Control("", required),
  passwordConfirm: new Control("", required)
});

Before:
group.errors

{
  login: {required: true},
  password: {required: true},
  passwordConfirm: {required: true},
}

After:
group.errors

{
  controls: {
    login: {required: true},
    password: {required: true},
    passwordConfirm: {required: true},
  }
}
2015-10-26 11:48:32 -07:00
..
docs feat(di): rename Binding into Provider 2015-10-11 05:13:31 +00:00
examples docs(examples): add empty examples directory for api docs examples 2015-09-23 21:30:17 +00:00
manual_typings Produce .d.ts files from our typescript compilation. 2015-10-10 02:18:33 +00:00
src feat(validators): Allow errors at both the group/array level or their children 2015-10-26 11:48:32 -07:00
test feat(validators): Allow errors at both the group/array level or their children 2015-10-26 11:48:32 -07:00
web_worker fix(typings): update test.typings for abstract superclasses 2015-10-08 13:54:43 -07:00
README.dart.md feat(publish): update files to publish to npm 2015-02-24 16:53:44 -08:00
README.js.md fix(npm): update scripts and readme for npm packages. 2015-06-09 11:39:08 -07:00
angular2.dart refactor(dart): Format Dart code 2015-10-20 17:39:37 +00:00
angular2.ts fix(api): remove animation from public API 2015-09-15 18:12:05 +00:00
angular2_sfx.dart style(dart): Format Dart source with dart_style 0.1.8 2015-05-29 10:42:47 -07:00
angular2_sfx.ts fix(core): Fix typo 2015-10-26 17:52:42 +00:00
animate.ts feat(animate): adds basic support for CSS animations on enter and leave 2015-09-14 17:37:09 +00:00
bootstrap.ts refactor: export core APIs from angular2/core 2015-09-05 07:01:34 +00:00
bootstrap_static.dart refactor: export core APIs from angular2/core 2015-09-05 07:01:34 +00:00
core.dart refactor(dart): Format Dart code 2015-10-20 17:39:37 +00:00
core.ts refactor(core): move core/compiler to core/linker, adjust imports 2015-10-02 08:42:12 -07:00
http.ts feat(di): change the params of Provider and provide to start with "use" 2015-10-12 21:09:09 +00:00
lifecycle_hooks.ts refactor(core): move core/compiler to core/linker, adjust imports 2015-10-02 08:42:12 -07:00
mock.ts refactor(core): adjust imports for move files to the right place 2015-10-02 13:38:51 -07:00
package.json chore(package.json): remove typings bundles 2015-10-15 16:17:17 -07:00
profile.ts chore: update all import paths 2015-08-25 15:33:23 -07:00
pubspec.yaml refactor(dart/transform): Update protobuf dependencies 2015-10-19 10:32:17 -07:00
render.ts refactor: export core APIs from angular2/core 2015-09-05 07:01:34 +00:00
router.ts docs(chore): make styles consistent for API doc headings 2015-10-19 14:58:22 +00:00
test.ts refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
test_lib.ts refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
testing.ts fix(typings): don't expose RootTestComponent_ 2015-10-16 01:37:14 +00:00
testing_internal.ts refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
tools.ts feat(perf): change detection profiler 2015-09-09 01:12:58 +00:00
tsconfig.json fix(tsconfig): target should be lower case 2015-07-08 16:07:25 -07:00
tsd.json refactor(NgZone): improve types 2015-10-09 23:54:31 +00: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.

As a convenience, we provide you with /es6/{dev|prod}/es5build.js, a script to transpile the es6 sources into es5 using Google Traceur.

License: Apache MIT 2.0