Tobias Bosch
93ade740e2
fix(router): configure DI correctly when using the old `provideRouter` function
2016-08-01 02:35:41 -07:00
Tobias Bosch
a46437c57d
refactor(core): fix `bootstrapModule` regarding zones and initializers ( #10383 )
...
This makes `bootstrapModuleFactory` wait for promises
returned by `APP_INITIALIZER`s, also making `bootstrapModuleFactory` async.
I.e. now `bootstrapModule` and `bootstrapModuleFactory` behave in the
same way.
This ensures that all code from module instantiation, to creating
`ApplicationRef`s as well as calling `APP_INITIALIZERS` is run
in the Angular zone.
This also moves the invocation of the initializers from the `ApplicationRef`
constructor into the `bootstrapModuleFactory` call, allowing initializers
to get a hold of `ApplicationRef` (see #9101 ).
Fixes #9101
Fixes #10363
Fixes #10205
2016-08-01 02:12:59 -07:00
Tobias Bosch
633c7d1ebe
refactor(core): cleanup unused `NgZone` factory
...
This factory was only used when using `coreBootstrap` / `coreLoadAndBoostrap`
which is not supported any more.
2016-08-01 02:12:59 -07:00
Cody-Nicholson
251953218c
fix(http): URLSearchParams.clone propagate the QueryEncoder ( #9900 )
2016-07-30 19:01:20 -07:00
Suguru Inatomi
0d6cc17252
fix(UrlParser): stop setting default value 'true' ( #10399 )
2016-07-30 14:34:03 -07:00
Victor Berchet
c8989c900f
chore(github): remove reference to Dart in the issue template ( #10388 )
2016-07-30 00:22:04 -07:00
Zhicheng Wang
6134320f16
refactor(http): rewrite for readable & efficient.
2016-07-29 21:30:28 -07:00
Zhicheng Wang
7f647822bd
fix(http): headers should be case-insensitive.
...
fixes #9452
spec at https://tools.ietf.org/html/rfc2616
2016-07-29 21:30:15 -07:00
Victor Berchet
e34a04d2ad
feat(xmb/xtb): support dtd
2016-07-29 14:18:34 -07:00
Victor Berchet
44093905e2
refactor(test): refine types
2016-07-29 13:53:13 -07:00
Victor Berchet
3e2900f74b
refactor(i18n): move code around
2016-07-29 13:40:58 -07:00
Victor Berchet
11fd2eccec
refactor: fix merge glitches
2016-07-29 13:40:58 -07:00
Victor Berchet
0eee1d5de3
feat(i18n): xtb serializer
2016-07-29 13:40:58 -07:00
Victor Berchet
1b77604ee2
refactor(compiler): re-arrange files
2016-07-29 13:40:58 -07:00
Victor Berchet
cc5cfe87c3
feat(i18n): xmb serializer
2016-07-29 13:40:58 -07:00
Victor Berchet
48f230a951
feat(I18nAst): introduce an intermediate AST
2016-07-29 13:40:58 -07:00
Victor Berchet
2be50bdbb0
refactor(i18n): message extractor
...
fixes #8802
2016-07-29 13:40:58 -07:00
Victor Berchet
f7258ea52a
test(HtmlAst): add a serializer
2016-07-29 13:40:58 -07:00
Victor Berchet
28e8b2faab
feat(ICU): extract ICU messages
2016-07-29 13:40:58 -07:00
vsavkin
3c3e9ddb10
feat(router): add a validation to make sure pathMatch is set correctly
2016-07-29 12:27:43 -07:00
vsavkin
5162fb6d52
feat(router): add isActive to router
2016-07-29 12:27:43 -07:00
vsavkin
2fdb39e60a
feat(router): activateroute should expose its route config
2016-07-29 12:27:43 -07:00
Marc Laval
43c71ae103
fix(platform-browser): IEMobile is badly detected when testing ( #10382 )
2016-07-29 10:05:12 -07:00
Marc Laval
f0bd528d77
test(http): fix Blob creation for Android <= 4.3
...
Closes #10377
2016-07-29 18:20:09 +02:00
Marc Laval
50a024b42f
test(http): add Typed Array polyfill for IE9
2016-07-29 18:19:54 +02:00
Marc Laval
b48f7bcb8d
fix(forms): normalize written value in NumberValueAccessor
...
Closes #10379
2016-07-29 18:18:30 +02:00
Chuck Jazdzewski
763ca60f5b
feat(compiler): Support default parameters in static reflector ( #10370 )
...
Closes : #10369
2016-07-29 09:10:45 -07:00
Tobias Bosch
0eca7abdd8
chore: update public api
...
Closes #10355
2016-07-29 04:47:50 -07:00
Tobias Bosch
d0a95e35af
refactor(testing): introduce new testing api to support ng modules
...
BREAKING CHANGE:
- deprecations:
* `withProviders`, use `TestBed.withModule` instead
* `addProviders`, use `TestBed.configureTestingModule` instead
* `TestComponentBuilder`, use `TestBed.configureTestModule` / `TestBed.override...` / `TestBed.createComponent` instead.
Closes #10354
2016-07-29 04:47:18 -07:00
Tobias Bosch
acc6c8d0b7
feat(compiler): introduce `MockDirectiveResolver.setDirective`
2016-07-29 04:47:18 -07:00
Tobias Bosch
3dbc66c1ac
refactor(core): introduce interfaces for constructor arguments of decorators
...
For @Directive, @Component, @Pipe, @NgModule
2016-07-29 04:47:18 -07:00
Tobias Bosch
4ad6bcce54
feat(compiler): add `MockPipeResolver`
2016-07-29 04:47:17 -07:00
Tobias Bosch
0988cc82b0
refactor(core): remove `ViewResolver` and `ViewResolverMock`
...
The methods on `ViewResolverMock` have been merged into `DirectiveResolver`.
BREAKING CHANGE:
- ES5 users can no longer use the `View(…)` function to provide `ViewMetadata`.
This mirrors the removal of the `@View` decorator a while ago.
2016-07-29 04:47:17 -07:00
Chuck Jazdzewski
20b03bad11
feat(compiler): Added support for conditional expressions. ( #10366 )
...
Expression evaluated by the static reflector can now supports
conditional expressions.
Closes : #10365
2016-07-28 17:32:29 -07:00
vsavkin
81d27daf0d
fix(router): update dts files
2016-07-28 15:03:19 -07:00
vsavkin
bb8b82b3f5
fix(router): relax type defintion of Route to improve dev ergonomics
2016-07-28 15:03:19 -07:00
vsavkin
915a6666f8
fix(core): fix offline detection in ng_module_factory_loader
2016-07-28 15:03:19 -07:00
vsavkin
72da547d6a
fix(router): updates router module to be offline-compilation friendly
2016-07-28 15:03:19 -07:00
Kara
7c76a75452
fix(forms): update dirty before emitting value change ( #10362 )
...
Closes #5328
2016-07-28 14:25:33 -07:00
Tobias Bosch
a32c4ad2f0
fix(compiler): auto declare `entryComponents` recursively
...
Closes #10348
2016-07-28 12:03:34 -07:00
Tobias Bosch
fb3608aa5d
fix(compiler): report better error messages for `host` bindings
...
Closes #10346
2016-07-28 11:21:50 -07:00
Alex Eagle
0a46f37444
fix(metadata): fix typechecking with typescript@next
2016-07-28 11:17:53 -07:00
Tobias Bosch
9b39e499ac
fix(core): support components without a selector ( #10331 )
...
Components without a selector now get the selector `ng-component`.
Directives without a selector will throw an error message.
Closes #3464
Closes #10216
2016-07-28 10:39:10 -07:00
Hans
a67cc8229d
chore: move injector to being non-internal but private ( #10339 )
...
* chore: move injector to being non-internal but private
* Add the new non-internal method to the public API.
2016-07-28 10:38:29 -07:00
Chuck Jazdzewski
b58e9ea775
feat(compiler): Added support for references to static fields. ( #10334 )
...
Closes : #10332
2016-07-27 19:26:59 -07:00
Rob Wormald
422effdd18
refactor(http): use ngModules for http ( #10329 )
2016-07-27 13:09:05 -07:00
vikerman
3b690b68a6
fix(testing): Fix error message in test bed
...
The API name in the error message was wrong
2016-07-27 12:03:27 -07:00
Kara
43349dd373
fix(forms): improve ngModel error messages ( #10314 )
2016-07-27 10:59:40 -07:00
Tobias Bosch
e44e8668ea
fix(core): only warn and auto declare undeclared `entryComponents`.
...
This is needed to support existing applications.
After final these warnings will become errors.
Closes #10316
2016-07-27 10:56:12 -07:00
Tobias Bosch
69e72c0786
chore: remove `browserDynamicTestingPlatform` as it is deprecated and was not part of rc.4
...
Closes #10319
2016-07-27 10:52:47 -07:00