Dzmitry Shylovich
0eca960494
fix(router): fix lazy loaded module with wildcard route ( #13649 )
...
Closes #12955
2016-12-27 15:22:57 -08:00
Victor Berchet
eed83443b8
chore(tslint): update tslint to 4.x ( #13603 )
2016-12-27 14:55:58 -08:00
Georgios Kalpakas
e5c4e5801f
fix(upgrade): fix/improve support for lifecycle hooks ( #13020 )
...
With the exception of `$onChanges()`, all lifecycle hooks in ng1 are called on
the controller, regardless if it is the binding destination or not (i.e.
regardless of the value of `bindToController`).
This change makes `upgrade` mimic that behavior when calling lifecycle hooks.
Additionally, calling the `$onInit()` hook has been moved before calling the
linking functions, which also mimics the ng1 behavior.
2016-12-27 14:42:53 -08:00
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
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
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
crisbeto
171a9bdc85
feat: update to rxjs@5.0.1 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
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
Brandon
a23fa94ca8
fix(common): capitalize first letter of all words in TitleCasePipe ( #13511 )
2016-12-16 15:24:26 -08:00
Dzmitry Shylovich
4568d5ddac
refactor(core): fix typo ( #13515 )
...
Closes #13512
2016-12-16 15:21:58 -08:00
Janne Vanhala
c6e893953f
fix(upgrade): fix `registerForNg1Tests` ( #13522 )
...
Fix an issue in `registerForNg1Tests`, where it passes a `null` as
`ng1Injector` to `_bootstrapDone`. This causes a "TypeError: Cannot
read property 'get' of null" to be thrown from `_bootstrapDone`.
2016-12-16 15:14:16 -08:00
Marc Laval
55dfa1b69d
test(forms): refactor integration tests to improve speed ( #13500 )
2016-12-15 17:07:26 -08:00
Victor Berchet
0fe3cd9a4c
fix(i18n): add a default example to xmb placeholders ( #13507 )
...
Otherwise the TC would not be able to load the message
2016-12-15 15:33:42 -08:00
Matias Niemelä
0c19898694
fix(animations): allow players to be destroyed before initialized ( #13346 )
...
Closes #13293
Closes #13346
2016-12-15 14:18:57 -08:00
Chuck Jazdzewski
5b6e8ea3ec
refactor(compiler): format update ( #13506 )
2016-12-15 13:54:38 -08:00
Trotyl Yu
732f446ad2
docs(common): fix ngIf example ( #13496 )
2016-12-15 13:07:36 -08:00
Bowen Ni
f0e092515c
refactor(compiler): don't print stack trace on template parse errors ( #13390 )
2016-12-15 13:07:12 -08:00
Tobias Bosch
33910ddfc9
refactor(compiler): store metadata of top level symbols also in summaries ( #13289 )
...
This allows a build using summaries to not need .metadata.json files at all
any more.
Part of #12787
2016-12-15 09:12:40 -08:00
Victor Berchet
6cefccb314
build: bump angular to 4.0.0-beta.0 & tsc-wrapped to 0.5.0
2016-12-14 16:42:44 -08:00
Victor Berchet
fa9e21e83c
fix(compiler): fix merge error in compiler_host
2016-12-14 15:36:49 -08:00
Chuck Jazdzewski
b6078f5887
fix(compiler): update to metadata version 3 ( #13464 )
...
This change retracts support for metadata version 2.
The collector used to produce version 2 metadata was incomplete
and can cause the AOT compiler to fail to resolve symbols or
produce other spurious errors.
All libraries compiled and published with 2.3.0 ngc will need
to be recompiled and updated with this change.
2016-12-14 15:28:51 -08:00
Victor Berchet
c65b4fa9dc
refactor: format & lint
2016-12-14 15:10:43 -08:00
Dzmitry Shylovich
169ed82900
feat(testing): add overrideTemplate method ( #13372 )
...
Closes #10685
2016-12-14 15:05:17 -08:00
Matias Niemelä
fd8e15b15d
chore(animations/aot): always export NoOpAnimationDriver ( #13480 )
2016-12-14 14:51:29 -08:00
Victor Berchet
aa40366a92
fix(compiler): fix simplify a reference without a name
...
closes #13470
2016-12-14 14:33:10 -08:00
Victor Berchet
40d8d9c3e3
fix(tsc-wrapped): generate metadata for exports without module specifier
...
fixes #13327
2016-12-14 14:33:04 -08:00
Victor Berchet
ee2ac025ef
fix(compiler): propagate exports when upgrading metadata to v2
2016-12-14 14:33:04 -08:00
Alex Rickabaugh
aa3769ba69
fix(compiler): resolver should merge host bindings and listeners ( #13474 )
...
fixes #13327
2016-12-14 14:31:57 -08:00
Victor Berchet
d4ddb6004e
refactor: format & lint
2016-12-14 13:05:04 -08:00
Peter Bacon Darwin
84400bcc86
docs(upgrade): fix UpgradeAdapter examples
...
closes #12675
2016-12-14 13:02:31 -08:00
Peter Bacon Darwin
42d9998cbb
docs(upgrade/upgrade_adapter): fix up references to AngularJS and Angular 2
2016-12-14 13:02:27 -08:00
Eudes Petonnet-Vincent
c18d2fe5e3
feat(upgrade): enable Angular 1 unit testing of upgrade module
...
- New method `UpgradeAdapter.registerForNg1Tests(modules)` declares the
Angular 1 upgrade module and provides it to the `angular.mock.module()`
helper.
This prevents the need to bootstrap the entire hybrid for every test.
Closes #5462 , #12675
2016-12-14 13:02:27 -08:00
Eudes Petonnet-Vincent
d91a86aac6
fix(upgrade): fix downgrade content projection and injector inheritance
...
- Full support for content projection in downgraded Angular 2
components. In particular, this enables multi-slot projection and
other features on <ng-content>.
- Correctly wire up hierarchical injectors for downgraded Angular 2
components: downgraded components inherit the injector of the first
other downgraded Angular 2 component they find up the DOM tree.
Closes #6629 , #7727 , #8729 , #9643 , #9649 , #12675
2016-12-14 13:02:27 -08:00