Dzmitry Shylovich
445e5922ec
feat(forms): make 'parent' a public property of 'AbstractControl' ( #11855 )
2016-10-19 09:55:50 -07:00
Florian Kinder
b9fc090143
feat(forms): Added emitEvent to AbstractControl methods ( #11949 )
...
* feat(forms): Added emitEvent to AbstractControl methods
* style(forms): unified named parameter
2016-10-19 09:54:54 -07:00
Cédric Exbrayat
592f40aa9c
feat(forms): add hasError and getError to AbstractControlDirective ( #11985 )
...
Allows cleaner expressions in template-driven forms.
Before:
<label>Username</label><input name="username" ngModel required #username="ngModel">
<div *ngIf="username.dirty && username.control.hasError('required')">Username is required</div>
After:
<label>Username</label><input name="username" ngModel required #username="ngModel">
<div *ngIf="username.dirty && username.hasError('required')">Username is required</div>
Fixes #7255
2016-10-19 09:49:02 -07:00
Dzmitry Shylovich
bf60418fdc
feat(forms): Validator.pattern accepts a RegExp ( #12323 )
2016-10-19 09:37:54 -07:00
Matias Niemelä
6e5f8b59b3
fix(animations): generate aot code for animation trigger output events ( #12291 )
...
Closes #11707
Closes #12291
2016-10-18 17:16:51 -07:00
Connor Wyatt
17e3410d98
Form submit event ( #11989 )
...
* feat(forms): ngSubmit event exposes $event from original submit event as local variable
Modify NgForm directive and FormGroup directive to expose the original submit event as $event in the ngSubmit event. Modify docs to reflect changes.
This resolves #10920 .
* refactor: code cleanup
2016-10-11 15:49:36 -07:00
Karl Seamon
5effc330ed
feat(upgrade): compilerOptions in bootstrap ( #10575 )
2016-10-11 15:48:08 -07:00
Igor Minar
bcef5efffe
fix(platform-browser-dynamic): mark platformBrowserDynamic as stable API ( #12154 )
...
Everyone building Angular apps need to use this api to bootstrap or AoT compile, so it can't be experimental.
2016-10-07 13:54:06 -07:00
Victor Berchet
cf269d9ff4
refactor: add license header to JS files & format files ( #12081 )
2016-10-04 20:39:20 -07:00
Chuck Jazdzewski
43d3a84df3
Revert "refactor: add license header to JS files & format files ( #12035 )"
...
This reverts commit 8310c91823
.
2016-10-04 14:06:41 -07:00
Victor Berchet
8310c91823
refactor: add license header to JS files & format files ( #12035 )
2016-10-04 13:15:49 -07:00
Victor Berchet
ed9c2b6281
fix(Header): preserve case of the first init, `set()` or `append()` ( #12023 )
...
fixes #11624
2016-10-03 15:27:56 -07:00
Victor Berchet
f23b22a0f4
refactor: misc cleanup
2016-09-22 11:01:16 -07:00
Igor Minar
3a6fcee0e6
docs(core): mark TestBed as stable api and add preliminary docs ( #11767 )
...
TestBed was accidentaly ommited from the 'stable' api list during the API sweep before final. We do consider it to be stable.
2016-09-22 10:32:17 -07:00
vsavkin
676bb0fa7d
feat(router): update dts files
2016-09-20 14:53:52 -07:00
Victor Berchet
671f73448c
refactor: misc cleanup ( #11654 )
2016-09-19 17:15:57 -07:00
Victor Berchet
0621f07a2c
refactor: misc cleanup
2016-09-19 16:24:31 -07:00
Victor Berchet
0dc15eb64a
fix(ContentChild): query descendants by default
...
fixes #1645
2016-09-19 10:42:46 -07:00
Kara
fa4723a208
docs(forms): add radio button examples ( #11676 )
2016-09-19 10:41:20 -07:00
Marc Laval
14ee75924b
fix(common): fix ngOnChanges signature of NgTemplateOutlet directive
2016-09-15 11:00:30 -07:00
vsavkin
42f60ca303
docs(core): update dts file
2016-09-14 15:27:33 -07:00
vsavkin
15c2912527
chore(core): update public api file
2016-09-14 14:53:30 -07:00
Alex Eagle
5fad37df69
Revert "chore(core): update public api file"
...
This reverts commit 727c2b38a4
.
Revert "docs(core): updates query decorator docs"
This reverts commit b6287ccc51
.
Revert "docs(core): extract how to examples"
This reverts commit 69e8ace884
.
2016-09-14 13:34:25 -07:00
vsavkin
727c2b38a4
chore(core): update public api file
2016-09-14 13:22:09 -07:00
Tobias Bosch
1a035a0dc7
build(examples): include in main `tsconfig.json`
...
Also rename `examples/tsconfig.json` into `examples/tsconfig-build.json`
so that it does not shadow the main `tsconfig.json` in editors
Also adds `noImplicitAny` and `declarations`
`examples/tsconfig.json`.
2016-09-14 11:29:31 -07:00
Tobias Bosch
cc2873a94d
chore: update typings
...
Note that the typings don’t reflect the shape of the metadata
due to a bug in the public-api-guard
2016-09-12 22:47:54 -07:00
vsavkin
0614c8c99d
chore(router): update publicapi
2016-09-12 10:02:48 -07:00
Victor Berchet
c649a5c5ab
refactor(common): cleanup directives
2016-09-09 14:30:18 -07:00
Kara
53f0c2206d
fix(forms): rename validator change fn due to conflict ( #11492 )
...
Closes #11479
2016-09-09 14:09:11 -07:00
Victor Berchet
5a4e46db20
refactor(tests): simplify code ( #11485 )
2016-09-09 12:04:38 -07:00
Victor Berchet
f5d44a42c9
refactor(NgClass): cleanup, readability ( #11467 )
2016-09-09 12:03:51 -07:00
Igor Minar
109dc99d32
build(npm): remove obsolete npm dependencies
...
I also removed an obsolete bundling script which depended on systemjs-builder that I removed.
2016-09-02 15:58:46 -07:00
Kara
8c09933803
fix(forms): support rebinding nested controls ( #11210 )
2016-09-02 15:57:35 -07:00
Martin Probst
ebc8e808a9
feat(router): register NgModuleFactory objects. ( #11211 )
...
When lazily loading code, users need to be able to get hold of the
NgModuleFactory. For SystemJS environments, the SystemJS registry serves
this purpose. However other environments, such as modules compiled with
Closure compiler, do not expose exports object or a path based registry.
For these environments, `@NgModule` objects can include an identifier, and
the loading code can then pass `loadModule(id).then(() =>
getNgModule(id))` to the router.
2016-09-01 13:46:08 -07:00
Igor Minar
99c0a7fae2
fix(tsc-wrapped): correct the tsickle dependency in package.json
2016-08-31 15:10:09 -07:00
Tobias Bosch
6dceaf209d
fix(benchmarks): recreate setup for running benchmarks
2016-08-31 08:24:10 -07:00
Tobias Bosch
1ef122988e
fix(benchpress): make code compile and unit tests green again
2016-08-31 08:24:10 -07:00
Igor Minar
2b20db6c5a
chore: update to typescript@2.0.2 - the currect 2.0 rc
2016-08-30 21:07:45 -07:00
Igor Minar
71ae2c4525
refactor(webworkers): move webworkers to separate @angular/platform-webworker and @angular/platform-webworker-dynamic packages
...
BREAKING CHANGE: web worker platform is now exported via separate packages.
Please use @angular/platform-webworker and @angular/platform-webworker-dynamic
2016-08-30 21:07:45 -07:00
vsavkin
c74a438f0c
docs(router): fix up the exampesd
2016-08-30 20:37:35 -07:00
Miško Hevery
979657989b
fix(packages): use ES modules for primary build ( #11120 )
2016-08-30 18:07:40 -07:00
Kara
e8a1566065
fix(forms): support radio buttons with same name but diff parent ( #11152 )
...
Closes #10065
2016-08-29 17:49:42 -07:00
Kara Erickson
d2ad871279
fix(forms): update validity when validator dir changes
...
closes #11116
2016-08-29 13:12:46 -07:00
Javier Ros
0b665c0ece
feat(validations): add support to bind validation attributes
...
This change enables to bind the validations attributes `required`,
`minlength`, `maxlength` and `pattern`.
Closes : #10505 , #7393
2016-08-29 13:12:20 -07:00
Alex Eagle
875e66409c
fix(closure): prevent closure renaming of testability interface ( #11146 )
2016-08-29 13:08:28 -07:00
Alex Rickabaugh
27539c8b80
refactor(example): refactor forward_ref example into a spec and unignore example specs ( #11088 )
2016-08-26 15:40:46 -07:00
Marc Laval
3dd85cb7f1
test(tools): make the test suite to pass on Windows ( #10926 )
2016-08-26 15:36:04 -07:00
Misko Hevery
7c07bfff97
fix(errors): [2/2] Rename Exception to Error; remove from public API
...
BREAKING CHANGE:
Exceptions are no longer part of the public API. We don't expect that anyone should be referring to the Exception types.
ExceptionHandler.call(exception: any, stackTrace?: any, reason?: string): void;
change to:
ErrorHandler.handleError(error: any): void;
2016-08-26 10:37:17 -07:00
vsavkin
a2deafc50f
fix(router): add an option to disable initial navigation
2016-08-26 10:32:35 -07:00
vsavkin
2fc5c57b31
feat(router): add support for custom error handlers
2016-08-26 10:32:35 -07:00