Dzmitry Shylovich
69fa3bbc03
feat(router): add an extra argument to CanDeactivate interface ( #13560 )
...
Adds a `nextState` argument to access the future url from `CanDeactivate`.
BEFORE:
canDeactivate(component: T, route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean>|Promise<boolean>|boolean;
AFTER:
canDeactivate(component: T, currentRoute: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState?: RouterStateSnapshot): Observable<boolean>|Promise<boolean>|boolean;
Closes #9853
2016-12-27 14:08:06 -08:00
Dzmitry Shylovich
445ed43b9a
fix(compiler): throw an error for invalid provider ( #13544 )
...
Closes #8870
2016-12-27 14:02:28 -08:00
Dzmitry Shylovich
174334dec3
fix(router): routerLink support of null/undefined ( #13380 )
...
Closes #6971
2016-12-27 13:45:16 -08:00
Tobias Bosch
9c697030e6
feat(compiler): generate proper reexports in .ngfactory.ts files to not need transitive deps for compiling .ngfactory.ts files. ( #13524 )
...
Note: This checks the constructors of `@Injectable` classes more strictly.
E.g this will fail now as the constructor argument has no `@Inject` nor is
the type of the argument a DI token.
```
@Injectable()
class MyService {
constructor(dep: string) {}
}
```
Last part of #12787
Closes #12787
2016-12-27 09:36:47 -08:00
Dzmitry Shylovich
697690349f
fix(common): add link to trackBy docs ( #13634 )
2016-12-22 13:25:51 -08:00
Filipe Silva
0448e80704
docs(examples): fix example path ( #13635 )
2016-12-22 13:25:21 -08:00
Georgios Kalpakas
e85232afd2
docs(ngIf): fix typos ( #13630 )
2016-12-22 12:36:47 -08:00
Chase
e7ece6c8ce
fixed minor typo ( #13626 )
2016-12-22 12:36:24 -08:00
Dzmitry Shylovich
67380d4b28
fix(testing): improve misleading error message when don't call compileComponents ( #13543 )
...
Closes #11301
2016-12-22 12:35:57 -08:00
Chuck Jazdzewski
f114e40212
docs(changelog): add changelog for 4.0.0-beta.1
2016-12-21 16:48:14 -08:00
Chuck Jazdzewski
952471e25d
chore(release): cut the 4.0.0-beta.1 release
2016-12-21 16:44:56 -08:00
Chuck Jazdzewski
c65e428778
docs(changelog): add changelog for 2.4.1
2016-12-21 16:43:13 -08:00
Matias Niemelä
842f52e841
fix(animations): always recover from a failed animation step ( #13604 )
2016-12-21 14:14:45 -08:00
Victor Savkin
eb2ceff4ba
fix(router): should reset location if a navigation by location is successful ( #13545 )
...
Closes #13491
2016-12-21 12:47:58 -08:00
Matias Niemelä
f49ab56160
fix(animations): always quote string map key values in AOT code ( #13602 )
2016-12-20 18:17:58 -08:00
Dzmitry Shylovich
c0f750af4e
fix(compiler): ignore @import in comments ( #13368 )
...
* refactor(compiler): clean up style url resolver
* fix(compiler): ignore @import in css comments
Closes #12196
2016-12-20 17:51:02 -08:00
Ryan Cavanaugh
bcd37f52fb
Include bower instructions in DEVELOPER.md ( #13591 )
2016-12-20 17:50:04 -08:00
Chuck Jazdzewski
e69c1fb36c
refactor(platform-browser): resolver merge conflict for tslint ( #13601 )
2016-12-20 17:49:25 -08:00
Georgios Kalpakas
9da4c259a5
feat(upgrade): support the $doCheck() lifecycle hook in UpgradeComponent ( #13015 )
2016-12-20 16:18:43 -08:00
Dzmitry Shylovich
fcd116fdc0
fix(common): throw an error if trackBy is not a function ( #13420 )
...
* fix(common): throw an error if trackBy is not a function
Closes #13388
* refactor(platform-browser): disable no-console rule in DomAdapter
2016-12-20 16:18:24 -08:00
Dzmitry Shylovich
383adc9ad9
fix(core): improve error message when component factory cannot be found ( #13541 )
...
Closes #12678
2016-12-20 16:17:22 -08:00
Filipe Silva
9b8488f007
build: fix publish-build-artifacts branch detection ( #13599 )
2016-12-20 15:59:15 -08:00
Filipe Silva
1817ddb57b
build: publish build artifacts to branches ( #13529 )
...
Fix #13126
2016-12-20 14:52:50 -08:00
Chuck Jazdzewski
1ee574c51e
docs(changelog): add changelog for 2.4.0
2016-12-20 11:14:28 -08:00
crisbeto
171a9bdc85
feat: update to [email protected] and unpin the rxjs peerDeps via ^5.0.1 ( #13572 )
...
Now that rxjs is stable and the rxjs team follows semver, we can update and unpin the dependency safely.
From now on the Angular application/library developers are in charge of controlling the rxjs version as long as it's newer than 5.0.1.
closes #13561
closes #13478
closes #13572
2016-12-19 16:24:53 -08:00
Igor Minar
896916af29
build(npm): update angular version in shrinkwrap files
2016-12-19 16:23:54 -08:00
Chuck Jazdzewski
e49c7fae22
refactor(compiler-cli): support extracting the mesage bundle without writing a file ( #13580 )
2016-12-19 15:28:55 -08:00
Victor Berchet
6b65fc1286
feat(compiler-cli): private i18n API for the CLI ( #13536 )
...
Also change the Extractor API to align with the Codegen API (internal APIs)
2016-12-19 11:56:10 -08:00
Chuck Jazdzewski
0e3981afc1
fix(compiler-cli): produce metadata for .d.ts files without metadata ( #13526 )
...
Fixes #13307
Fixes #13473
Fixes #13521
2016-12-16 15:33:47 -08:00
Victor Berchet
e78508507d
fix(compiler): do not lex }} when interpolation is disabled ( #13531 )
...
* doc(compiler): fix the ICU expander API docs
* test(compiler): add lexer and parser specs
* fix(compiler): do not lex `}}` when interpolation is disabled
fix #13525
2016-12-16 15:33:16 -08:00