Julie Ralph
b43f95435b
fix(testing): add an explicit doAsyncPrecompilation step ( #10015 )
...
This removes the magic from the `inject` test helper that would inspect
the current zone and would only work with our `async` test helper.
Now, `inject` is always synchronous, and if you are using a module
that requires async precompilation, you're required to call
`doAsyncPrecompilation` in your tests.
This is part of the breaking changes introduced with the swap
to each test having an AppModule.
Closes #9975
Closes #9593
BREAKING CHANGE:
`TestInjector` is now renamed to `TestBed`
Before:
```js
import {TestInjector, getTestInjector} from '@angular/core/testing';
```
After:
```js
import {TestBed, getTestBed} from '@angular/core/testing';
```
2016-07-20 10:51:21 -07:00
Suguru Inatomi
450f61d384
docs(router): fix provider token ( #10177 )
2016-07-20 07:27:09 -07:00
Victor Berchet
f3dd91e1d7
feat(NumberPipe): add string support ( #10163 )
...
fixes #10159
2016-07-19 11:27:06 -07:00
Julie Ralph
979946c062
fix(testing): Add platform directives to the shim that keeps setBaseTestProviders running ( #10154 )
...
Due to https://github.com/angular/angular/commit/daa9da404711bf10d5b9098a36819abb585a30c7 ,
tests using the setBaseTestProviders stopped working with ambient directives such as
`ngIf`. Add them back in to keep the shim working.
2016-07-19 08:59:14 -07:00
vsavkin
51e661eb74
fix(router): export navigation extras
2016-07-18 17:42:04 -07:00
vsavkin
921a17960c
fix(router): lazy loaded components should use loaded injector
2016-07-18 17:42:04 -07:00
vsavkin
7a4f6621ed
fix(router): handle lastPathIndex of empty-path routes
2016-07-18 17:42:04 -07:00
Damien Cassan
83bc5c97ef
fix(http): convert objects passed to requests into a string ( #10124 )
...
This remove a breaking change introduced with commit #e7a8e2757b06d572f614f53b648d2fd75df370d2 where json objects passed to requests were not converted into string.
BREAKING CHANGE:
The behavior in this commit is the same as before PR 7260 : the objects sent with the request are converted to a string, therefore there is no need for the user to take care of the serialization.
Fixes #10073
2016-07-18 14:20:03 -07:00
Victor Berchet
3f08efa35d
fix(KeyValueDiffer): check for changes
...
fixes #9115
2016-07-18 11:30:07 -07:00
Victor Berchet
0914dc35e8
refactor(Differ): cleanup
2016-07-18 11:30:07 -07:00
Victor Berchet
b6746cce9c
refactor(decorators): cleanup
2016-07-18 10:38:59 -07:00
Victor Berchet
8cd97c2054
refactor(NgFor): cleanup
2016-07-18 10:38:59 -07:00
Cole R Lawrence
32d8cde9c6
docs(NgSwitch): fix typo ngSwitch to NgSwitch ( #10143 )
2016-07-18 10:24:55 -07:00
vsavkin
1803ed2512
fix(router): fix rollup config to properly set up rxjs
2016-07-15 16:27:54 -07:00
vsavkin
f08060b0b0
fix(router): back button does not work in IE11 and Safari
2016-07-15 14:59:59 -07:00
vsavkin
b77a4a40a4
fix(router): expose initalNavigation and dispose so they can be used with webworkers
2016-07-14 17:29:01 -07:00
vsavkin
e1109d52e1
docs(router): update the docs of LocationPathStrategy
2016-07-14 15:00:50 -07:00
vsavkin
0668ba50e8
fix(router): freeze params and queryParams to prevent common source of bugs
2016-07-14 13:33:05 -07:00
Hiroto Fukui
aa88438b54
feat(Router): add extra validation for when route was passed as Array ( #9942 )
2016-07-14 08:28:31 -07:00
vsavkin
85be729c70
fix(router): lazily-loaded modules should use loaded injectors instead of the root one
2016-07-13 18:25:30 -07:00
vsavkin
a5dc5705a3
feat(router): guards and data resolvers can now return promises
2016-07-13 18:25:30 -07:00
vsavkin
9e3d13f61f
feat(router): add support for canActivateChild
2016-07-13 18:25:30 -07:00
Chuck Jazdzewski
961c9d48ae
fix(compiler): Query expression lambdas should have dynamic type
...
Fixes : #9875
2016-07-13 15:41:30 -07:00
Chuck Jazdzewski
9229bbbc80
Revert "fix(compiler): Generates function expressions as returning any ( #9980 )"
...
This reverts commit eb5763c23f .
2016-07-13 15:41:30 -07:00
Kara
34feecf60e
fix(forms): improve no value accessor error message ( #10051 )
2016-07-13 14:13:02 -07:00
Alex Eagle
4c762a6be3
chore(lint): enable lint check for duplicate vars
2016-07-13 12:33:39 -07:00
vsavkin
0426325ef7
fix(router): merge SystemJsAppModuleFactoryLoader and SystemJsAllModuleLoader
2016-07-13 11:16:46 -07:00
vsavkin
0b54e3cf0a
fix(router): do not fire events on 'duplicate' location events
2016-07-13 11:16:46 -07:00
vsavkin
5cf58971f1
fix(router): update current state and url before activating components
2016-07-13 11:16:46 -07:00
Chuck Jazdzewski
6518ff88b2
fix(compiler): No longer writes 0 length files outside of genDir ( #10023 )
...
Fixes : #9984
2016-07-13 11:15:23 -07:00