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
Victor Savkin
f7ff6c5a12
refactor(core): remove deprecated 'bootstrap' ( #10831 )
2016-08-16 11:15:01 -07:00
Julie Ralph
4c9900dc3a
refactor(testing): remove deprecated testing functions ( #10832 )
...
Remove TestComponentBuilder, addProviders, and withProviders. These
were deprecated in rc5 - see the changelog for update information.
Note - this does not actually remove the functions, but makes them
internal only. They will be removed from the codebase entirely
at a later time.
2016-08-15 21:40:37 -07:00
Victor Savkin
6b26102931
feat(router): extend support for lazy loading children ( #10705 )
2016-08-15 21:11:09 -07:00
Miško Hevery
bec5c5fdad
refactor(Provider): remove deprecated provider/bind API ( #10652 )
...
Closes #9751
BREAKING CHANGE:
These forms of providers are no longer accepted:
bind(MyClass).toFactory(...)
new Provider(MyClass, toFactory: ...)
We now only accept:
{provider: MyClass, toFactory: ...}
2016-08-15 19:37:42 -07:00
Igor Minar
3f5331be9d
refactor(chore): remove deprecated NgZoneError ( #10822 )
...
BREAKING CHANGE: previously deprecated NgZoneError has been removed
2016-08-15 16:10:30 -07:00
Chuck Jazdzewski
48751cceae
refactor(core): Removed deprecated Query and ViewQuery ( #10820 )
...
BREAKING CHANGE: previously deprecated Query and ViewQuery were removed; see deprecation notice for migration instructions.
2016-08-15 16:07:55 -07:00
Chuck Jazdzewski
4a9745ef78
refactor(core): Remove deprecated DynamicComponentLoader ( #10759 )
...
BREAKING CHANGE: previously deprecated DynamicComponentLoader was removed; see deprecation notice for migration instructions.
2016-08-15 16:07:19 -07:00
Igor Minar
acc0fe6cf9
refactor(TestBed): remove deprecated TestBed.reset
2016-08-15 14:07:54 -07:00
Igor Minar
b238414984
refactor(core): remove previously deprecated SystemJsComponentResolver and SystemJsCmpFactoryResolver
...
BREAKING CHANGE: previously deprecated SystemJsComponentResolver and SystemJsCmpFactoryResolver have been removed.
Please follow deprecation instructions to migrate your code.
2016-08-15 14:07:54 -07:00
Victor Savkin
60b10134df
cleanup(platform): removed webworker and server deprecated apis ( #10745 )
2016-08-15 13:44:01 -07:00
Rob Wormald
73c0a9daaf
fix(router): make routerLinkActiveOptions public ( #10758 )
2016-08-15 00:39:59 -07:00
Victor Berchet
ce4eae65a7
feat(i18n): provide LOCALE_ID and NgLocalization
2016-08-13 06:18:25 -07:00
Igor Minar
33ced7088f
refactor(common): remove deprecated ReplacePipe ( #10772 )
...
BREAKING CHANGE: previously deprecated ReplacePipe was removed
2016-08-12 21:50:57 -07:00
Igor Minar
3329977ec9
refactor(core): remove deprecated coreBootstrap and coreLoadAndBootstrap
...
BREAKING CHANGE: previously deprecated coreBootstrap and coreLoadAndBootstrap have been removed.
Please follow deprecation instructions to migrate your code.
2016-08-12 18:07:58 -07:00
Igor Minar
f84c3fdc5f
refactor(ApplicationRef): remove all previously deprecated ApplicationRef apis
...
BREAKING CHANGE: All previously deprecated ApplicationRef apis have been removed.
Please follow the deprecation instructions to migrate your code.
2016-08-12 17:59:30 -07:00
Igor Minar
44e1b23813
refactor(PlatformRef): remove deprecated PlatformRef#registerDisposeListener, #disposed, #dispose()
...
BREAKING CHANGE: previously deprecated PlatformRef#registerDisposeListener, #disposed, #dispose() - follow deprecation instructions to upgrade
2016-08-12 17:59:30 -07:00
Igor Minar
12b0a3d0e5
refactor(NgUpgrade): remove deprecated addProvider
...
BREAKING CHANGE: previously deprecated UpgradeAdapter#addProvider was removed, see deprecation notice for migration instructions.
2016-08-12 17:59:30 -07:00
Chuck Jazdzewski
d2825077b1
fix(core): Removed depricated disposePlatform
...
BREAKING CHANGE: previously deprecated disposePlatform was removed; see deprecation notice for migration instructions.
2016-08-12 17:52:13 -07:00
Chuck Jazdzewski
156a52e390
refactor(core): Removed deprecated properties and events from metadata ( #10753 )
...
BREAKING CHANGE: previously deprecated DirectiveMetadataType#properties and DirectiveMetadataType#events were removed; see deprecation notice for migration instructions.
2016-08-12 17:44:44 -07:00
Chuck Jazdzewski
bb7221f922
refactor(facade): Removed unnecessary override and deprecation. ( #10761 )
2016-08-12 17:41:12 -07:00
Chuck Jazdzewski
2eb4ee8393
refactor(core): Removed depricated lockRunMode ( #10763 )
...
BREAKING CHANGE: previously deprecated lockRunMode was removed; see deprecation notice for migration instructions.
2016-08-12 17:40:22 -07:00
Chuck Jazdzewski
a235ae16ed
refactor(core): Removed deprecated DebugNode.inject() ( #10751 )
...
BREAKING CHANGE: previously deprecated DebugNode#inject was removed, see deprecation notice for migration instructions.
2016-08-12 15:57:23 -07:00
Kara
79afcf0766
fix(forms): remove deprecated form provider functions ( #10741 )
...
BREAKING CHANGE:
The deprecated `provideForms()` and `disableDeprecatedForms()` functions have been removed. Please import the `FormsModule` or the `ReactiveFormsModule` from @angular/forms instead.
2016-08-12 15:32:47 -07:00
Victor Berchet
161a4dd15f
feat(i18n): Add NgLocaleLocalization which returns plural cases given a locale ( #10744 )
2016-08-12 14:46:06 -07:00
Matias Niemelä
6580d67875
feat(i18n): pass translation config directly into ngc ( #10622 )
2016-08-12 14:45:36 -07:00
Victor Savkin
04c6b2fe85
fix(router): location changes and redirects break the back button ( #10742 )
2016-08-12 14:30:51 -07:00
Suguru Inatomi
203b2ba637
fix(http): expose jsonpFactory for AoT compilation ( #10730 )
2016-08-12 11:30:12 -07:00
Kara
97f35714f7
feat(forms): add NgForm method that resets submit state ( #10715 )
2016-08-11 23:27:33 -07:00
vsavkin
f48142e679
feat(core): make ngprobe tokens pluggable
2016-08-11 22:56:10 -07:00
vsavkin
947f9c3f56
feat(router): make router.config public
2016-08-11 22:56:10 -07:00
Kara
7606c96c80
fix(forms): remove deprecated forms APIs ( #10624 )
...
BREAKING CHANGE:
The deprecated forms APIs in @angular/common have been removed. Please update to the new forms API in @angular/forms. See angular.io for more information.
2016-08-11 20:40:46 -07:00
Kara
2291929a15
feat(forms): add control status classes to form groups ( #10667 )
2016-08-11 09:01:09 -07:00
Miško Hevery
b96869afd2
refactor(Type): merge Type and ConcreType<?> into Type<?> ( #10616 )
...
Closes #9729
BREAKING CHANGE:
`Type` is now `Type<T>` which means that in most cases you have to
use `Type<any>` in place of `Type`.
We don't expect that any user applications use the `Type` type.
2016-08-10 18:21:28 -07:00
Julie Ralph
d75502eeee
refactor(testing): remove deprecated test setup functions ( #10600 )
...
Remove test setup functions which were deprecated in rc5. See the
changelog for rc5 for how to update. In brief, instead of
`setBaseTestProviders`, use `TestBed.initTestEnvironment`.
2016-08-09 10:46:28 -07:00
Igor Minar
d21331e902
fix(ngUpgrade): to work with @NgModule
...
We changed the bootstrap order:
1. create NgZone
2. bootstrap ng1 inside NgZone and upgrade ng1 components to ng2 components.
3. bootstrap ng2 with NgZone
Note: Previous footgun behavior was: bootstrap ng2 first to extract NgZone, so that ng1 bootstrap can happen in NgZone. This meant that if ng2 bootstrap eagerly compiled a component which contained ng1 components, then we did not have complete metadata.
2016-08-08 12:50:08 -07:00
Miško Hevery
d4cceff0ef
chore: remove module aware bootstrap API ( #10543 )
...
This API was introduced post RC4, but needs to be removed
before RC5 as we have decided against it.
2016-08-08 09:36:09 -07:00
vsavkin
a415613457
fix(router): update dts files
2016-08-08 09:15:59 -07:00
Damien Cassan
0bd97ecda2
feat(http): add options method to Http ( #10540 )
...
Add options method to the Http object, which could be useful when using self-describing RESTful APIs.
This closes #10500 , closes #7918
2016-08-08 09:15:13 -07:00
Kara
fcafdff10b
feat(forms): allow both patching and strict setting of values ( #10537 )
2016-08-05 13:35:17 -07:00
vsavkin
c586656d43
fix(router): fix type definition
2016-08-05 13:12:21 -07:00
Brandon
63b82cd730
feat(router): Allow navigation without updating the URL ( #9608 )
2016-08-04 11:46:09 -07:00