Dzmitry Shylovich
72361fb68f
feat(platform browser): introduce Meta service ( #12322 )
2016-12-08 18:44:28 -08:00
Victor Berchet
61d7c1e0b3
feat(common): add a `titlecase` pipe ( #13324 )
...
closes #11436
2016-12-08 16:33:24 -08:00
Jónatan Núñez
9591a08dfb
fix(router): Use T type in Resolve interface ( #13242 )
2016-12-08 11:24:38 -08:00
Dzmitry Shylovich
2893c2c0a2
fix(router): validate nested routes ( #13224 )
...
Fixes #12827
2016-12-06 10:41:01 -08:00
Victor Berchet
349ad75de3
fix(router): fix replaceUrl on RouterLink directives
2016-12-05 10:54:10 -08:00
Victor Savkin
e628b66cca
feat(build): record angular version in the dom ( #13164 )
2016-11-30 13:52:08 -08:00
vsavkin
42cf06fa12
feat(router): add support for custom route reuse strategies
2016-11-29 23:21:41 -08:00
Pawel Kozlowski
808275a9d5
feat(core): expose destroy() method on ViewRef
2016-11-28 14:10:42 -08:00
Peter Bacon Darwin
1f96a93f59
chore(public_api): remove Angular 1 types from upgrade/static API
2016-11-16 09:18:10 -08:00
Dzmitry Shylovich
46d150266b
feat(router_link): add skipLocationChange and replaceUrl inputs ( #12850 )
2016-11-14 18:30:13 -08:00
Tobias Bosch
1b5384ee54
feat(core): expose `ViewRef` as `ChangeDetectorRef`
...
closes #12722
This is helpful when manually dirty checking embedded views.
2016-11-14 17:01:41 -08:00
Tobias Bosch
9f7d32a326
feat(core): add `attachView` / `detachView` to ApplicationRef
...
This feature is useful to allow components / embedded views
to be dirty checked if they are not placed in any `ViewContainer`.
Closes #9293
2016-11-14 17:01:35 -08:00
Matias Niemelä
9de76ebfa5
fix(animations): retain styling when transition destinations are changed ( #12208 )
...
Closes #9661
Closes #12208
2016-11-14 16:59:06 -08:00
vsavkin
c2fae72bc6
feat(router): register router with ngprobe
2016-11-14 12:57:05 -08:00
Victor Savkin
52be848f94
fix(router): incorrect injector is used when instantiating components loaded lazily ( #12817 )
2016-11-11 17:12:00 -08:00
vsavkin
73407351e7
feat(router): add support for custom url matchers
...
Closes #12442
Closes #12772
2016-11-09 16:24:58 -08:00
Victor Savkin
6e35d13fbc
feat(router): add a provider making angular1/angular2 integration easier ( #12769 )
2016-11-09 13:33:33 -08:00
Dzmitry Shylovich
09092ac3c2
fix(forms): getRawValue returns any instead of Object ( #12599 )
2016-11-08 15:44:36 -08:00
Tobias Bosch
d8f23f4b7f
fix(common): `NgSwitch` - don’t create the default case if another case matches ( #12726 )
...
This also simplifies the implementation of `NgSwitch`.
Closes #11297
Closes #9420
2016-11-07 12:22:36 -08:00
Georgios Kalpakas
469010ea8e
feat(UpgradeComponent): add/improve support for lifecycle hooks
...
Add support for the `$postDigest()` and `$onDestroy()` lifecycle hooks.
Better align the behavior of the `$onChanges()` and `$onInit()` lifecycle hooks
with Angular 1.x:
- Call `$onInit()` before pre-linking.
- Always instantiate the controller before calling `$onChanges()`.
2016-11-04 11:16:28 -07:00
Tobias Bosch
0e3d655220
refactor(compiler): remove view factories, use view classes directly
2016-11-02 20:58:48 -07:00
vsavkin
d509ee078b
fix(router): reset URL to the stable state when a navigation gets canceled
...
Closes #10321
2016-11-02 12:25:23 -07:00
Thomas Shafer
7c16ef942e
feat(core): add the find method to QueryList
2016-10-28 15:34:47 -07:00
Alex Eagle
a26dd28bdb
refactor(upgrade): re-export the new static upgrade APIs on new entry
...
Add upgrade-static.umd.js bundles
This allows depending on it without getting a transitive dependency on compiler.
BREAKING CHANGE:
Four newly added APIs in 2.2.0-beta:
downgradeComponent, downgradeInjectable, UpgradeComponent, and UpgradeModule
are no longer exported by @angular/upgrade.
Import these from @angular/upgrade/static instead.
2016-10-26 15:14:22 -07:00
Jeremy Elbourn
c9f58cf78c
feat(router): export routerLinkActive w/ isActive property
2016-10-26 14:08:22 -07:00
Victor Savkin
8b9ab44eee
feat(router): add support for ng1/ng2 migration ( #12160 )
2016-10-20 10:44:44 -07:00
Peter Bacon Darwin
d6791ff0e0
feat(ngUpgrade): add support for AoT compiled upgrade applications
...
This commit introduces a new API to the ngUpgrade module, which is compatible
with AoT compilation. Primarily, it removes the dependency on reflection
over the Angular 2 metadata by introducing an API where this information
is explicitly defined, in the source code, in a way that is not lost through
AoT compilation.
This commit is a collaboration between @mhevery (who provided the original
design of the API); @gkalpak & @petebacondarwin (who implemented the
API and migrated the specs from the original ngUpgrade tests) and @alexeagle
(who provided input and review).
This commit is an starting point, there is still work to be done:
* add more documentation
* validate the API via internal projects
* align the ngUpgrade compilation of A1 directives closer to the real A1
compiler
* add more unit tests
* consider support for async `templateUrl` A1 upgraded components
Closes #12239
2016-10-19 15:27:49 -07:00
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
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
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
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
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
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
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
Victor Berchet
0a053a4cd5
fix(i18n): Currency/Date/Number pipe use injected locale ( #11093 )
2016-08-26 09:16:01 -07:00
Igor Minar
811962b2bb
refactor: rename SanitizationService to Sanitizer and DomSanitizationService to DomSanitizer ( #11085 )
...
BREAKING CHANGE: Previously inconsistently named APIs SanitizationService and DomSanitizationService were renamed to Sanitizer and DomSanitizer
2016-08-25 15:41:19 -07:00
Kara
ce08982f78
fix(forms): fix conflicting getter name ( #11081 )
2016-08-25 14:56:31 -07:00
Igor Minar
ea2e5521e8
refactor: replace any[] with Provider[] where possible
2016-08-25 13:29:03 -07:00
Igor Minar
eb7d8c702c
fix(core): FactoryProvider's deps property should be optional
2016-08-25 13:29:03 -07:00
Igor Minar
5d294624fa
docs(core): update stability markers for core apis
2016-08-25 13:29:03 -07:00
Igor Minar
3aaf064d11
refactor(router): remove ROUTER_DIRECTIVES which were replaced by RouterModule
2016-08-25 13:29:03 -07:00
Igor Minar
f38a700e35
docs(upgrade): mark upgrade apis as stable
2016-08-25 13:29:03 -07:00
Igor Minar
501b83441d
refactor(forms): remove FORM_PROVIDERS, FORM_DIRECTIVES, REACTIVE_FORM_PROVIDERS, REACTIVE_DIRECTIVES
...
All of these have been replaced by FormsModule and ReactiveFormsModule.
2016-08-25 13:29:03 -07:00
Igor Minar
c03e25a7b7
docs(common): mark platform-browser and platform-browser-dynamic apis stable
2016-08-25 13:29:03 -07:00
Igor Minar
1f5a5895e5
refactor(common): rename UrlChangeEvent and UrlChangeListener to LocationChangeEvent and LocationChangeListener
...
These apis are not expected to be used anyone, hence I'm not documenting this change as a breaking.
2016-08-25 13:29:03 -07:00
Igor Minar
8a2324f86a
docs(common): mark all common apis except for i18n as stable
2016-08-25 13:29:03 -07:00
Igor Minar
6335b31702
refactor(common): remove COMMON_DIRECTIVES, COMMON_PIPES, CORE_DIRECTIVES that were replace with CommonModule
2016-08-25 13:29:03 -07:00
Kara
2b313e4979
feat(forms): add support for disabled controls ( #10994 )
2016-08-24 16:58:43 -07:00
Matias Niemelä
4f8f8cfc66
feat(animations): make sure animation callback reports the totalTime ( #11022 )
...
Closes #11022
2016-08-24 16:55:00 -07:00
Alex Rickabaugh
8b782818f5
feat(linker): Allow configurable module prefixes and suffixes. ( #11049 )
2016-08-24 16:54:42 -07:00
Victor Savkin
f1ce7607a6
fix(router): canLoad should cancel a navigation instead of failing it ( #11001 )
2016-08-24 10:20:44 -07:00
Igor Minar
7dfcaac730
fix(http): restructure exports so that we don't leak private factory functions ( #11016 )
...
Ref #10615
2016-08-23 16:34:57 -07:00
Alex Rickabaugh
05bbb8efcf
fix(platform-browser): remove export for private symbol _WORKER_UI_PLATFORM_PROVIDERS. ( #11018 )
2016-08-23 16:16:40 -07:00
Alex Rickabaugh
5ddecb18a7
feat(router): throw a helpful error when misusing forRoot() from a lazy module. ( #10996 )
2016-08-23 11:57:58 -07:00
Igor Minar
4a740f23a4
refactor(core): remove deprecated @Component.directives and @Component.pipes
...
BREAKING CHANGE: previously deprecated @Component.directives and @Component.pipes support was removed.
All the components and pipes now must be declarated via an NgModule. NgModule is the basic
compilation block passed into the Angular compiler via Compiler#compileModuleSync or #compileModuleAsync.
Because of this change, the Compiler#compileComponentAsync and #compileComponentSync were removed as well -
any code doing compilation should compile module instead using the apis mentioned above.
Lastly, since modules are the basic compilation unit, the ngUpgrade module was modified to always require
an NgModule to be passed into the UpgradeAdapter's constructor - previously this was optional.
2016-08-23 09:59:00 -07:00
Igor Minar
a782232ca3
refactor(core): fix typo in private property name
2016-08-23 09:59:00 -07:00
Matias Niemelä
3c561475c8
refactor(animations): add an onStart handler for AnimationPlayer ( #10360 )
2016-08-22 16:39:52 -07:00
Victor Savkin
c631cfc2fd
feat(core): add NO_ERRORS_SCHEMA that allows any properties to be set on any element ( #10956 )
...
Often it is useful to test a component without rendering certain directives/components
in its template because these directives require some complicated setup.
You can do that by using NO_ERRORS_SCHEMA.
TestBed.configureTestingModule({
schemas: [NO_ERRORS_SCHEMA]
});
This would disable all schema checks in your tests.
2016-08-19 16:05:34 -07:00
Alex Rickabaugh
628d06c17c
feat(core): Throw a descriptive error when BrowserModule is installed a second time (via lazy loading). ( #10899 )
...
Such a configuration is unsupported and causes all kinds of problems.
2016-08-18 13:34:28 -07:00
Alex Rickabaugh
a0e13b9797
refactor(core): remove deprecated functions ReflectiveInjector.fromResolvedBindings and ResolvedReflectiveBinding ( #10819 )
2016-08-17 16:53:09 -07:00
Julie Ralph
beb79e75bf
refactor(various): remove a few lingering but unused deprecated apis ( #10896 )
...
Removes deprecated APPLICATION_COMMON_PROVIDERS, as well as some
internal apis that were deprecated.
2016-08-17 16:36:10 -07:00
Victor Savkin
00e157dc3b
refactor(router): update stability labels ( #10902 )
2016-08-17 15:35:30 -07:00
Hans
40e160c22c
fix(platform-browser-dynamic): Rename CACHED_TEMPLATE_PROVIDER to RESOURCE_CACHE_PROVIDER ( #10866 )
...
* fix(platform-browser-dynamic): Rename CACHED_TEMPLATE_PROVIDER to RESOURCE_CACHE_PROVIDER
Closes #9741
BREAKING CHANGE:
`CACHED_TEMPLATE_PROVIDER` is now renamed to `RESOURCE_CACHE_PROVIDER`
Before:
```js
import {CACHED_TEMPLATE_PROVIDER} from '@angular/platform-browser-dynamic';
```
After:
```js
import {RESOURCE_CACHE_PROVIDER} from '@angular/platform-browser-dynamic';
```
* Rename XHR -> ResourceLoader
2016-08-17 09:24:44 -07:00
vsavkin
951ecb4d90
feat(core): update public api
2016-08-17 08:06:32 -07:00
Kara
6fd5bc075d
chore(forms): update forms labels ( #10873 )
2016-08-17 07:44:39 -07:00
Chuck Jazdzewski
675e582ffd
refactor(http): Removed deprecated HTTP_PROVIDERS and JSONP_PROVIDERS ( #10864 )
...
BREAKING CHANGE: previously deprecated HTTP_PROVIDERS and JSONP_PROVIDERS were removed; see deprecation notice for migration instructions.
2016-08-17 07:43:31 -07:00
Igor Minar
73a9ee4a05
Remove component resolver ( #10858 )
...
* refactor(core): remove deprecated ComponentResolver
BREAKING CHANGE: deprecated ComponentResolver was removed
Please follow deprecation instruction and migrate your code to use ComponentFactoryResolver.
* refactor(common): remove deprecated NgSwitchWhen directive
BREAKING CHANGE: previously deprecated NgSwitchWhen directive was removed, use NgSwitchCase instead
2016-08-16 16:48:32 -07:00
Julie Ralph
a86c554a8e
refactor(core/testing): remove deprecated ViewMetadata ( #10837 )
...
Note that this doesn't actually remove all uses, but makes them
private.
2016-08-16 13:59:06 -07:00
Victor Savkin
24e280a21a
refactor(router): remove deprecated apis ( #10658 )
2016-08-16 13:40:28 -07:00