Igor Minar
3804ad1d23
revert: build: first pass of de-duplicating tsconfig.json content ( #14369 )
...
This reverts commit 1c112ae66e .
First failed build (one commit after the change being reverted): https://travis-ci.org/angular/angular/jobs/202414385#L2511
2017-02-17 12:15:49 -08:00
Alex Eagle
1c112ae66e
build: first pass of de-duplicating tsconfig.json content ( #14369 )
...
PR Close #14369
2017-02-16 13:47:10 -08:00
Gerd Jungbluth
8ab89153e0
docs(core): fix typo ( #14299 )
...
Replace `than` with `then`.
PR Close #14299
2017-02-08 20:23:36 -08:00
Peter Bacon Darwin
6921b3d21d
docs(zone): fix whitespace around backtick code
...
If there is no leading empty line then the markdown renderers get confused.
2017-02-08 20:23:36 -08:00
Dzmitry Shylovich
109f0d16ef
fix(common): introduce isObservable method ( #14067 )
...
Closes #8848
PR Close #14067
2017-02-02 18:50:40 -08:00
Dzmitry Shylovich
250dbc4bc8
fix(core): add bootstrapped modules into platform modules list ( #13740 )
...
Closes #12015
PR Close #13740
2017-02-02 16:02:53 -08:00
Dimitri Benin
70bbdf55da
fix(testing): async/fakeAsync/inject/withModule helpers should pass through context to callback functions ( #13718 )
...
Make sure that context (`this`) that is passed to functions generated by test helpers is passed through to the callback functions. Enables usage of Jasmine's variable sharing system to prevent accidental memory leaks during test runs.
2017-02-02 16:02:53 -08:00
Dzmitry Shylovich
41b8d95fa7
fix(core): ViewContainerRef.indexOf doesn't throw error when empty ( #13220 )
...
PR Close #13220
2017-02-02 16:02:53 -08:00
Jason Aden
458ccc1aff
refactor(core): simplify ReflectiveInjector by removing code for Dart implementation ( #14126 )
...
ReflectiveInjector previously used two strategies for resolving dependencies. These
were to support the Dart implementation, but are no longer needed. A result of this
PR is there is no longer a 20 dependency limit and the generated code is smaller.
PR Close #14126
2017-02-02 16:01:04 -08:00
Misko Hevery
14e97516cb
refactor(abstract): Use abstract keyword where possible to decrease file size. ( #14112 )
...
PR Close : #14112
2017-01-27 12:52:12 -08:00
Misko Hevery
d5f1419afe
refactor(size): Use abstract keyword where possible to decrease file size. ( #14112 )
2017-01-27 12:55:20 -06:00
Matias Niemelä
5ea373d184
docs(core): add docs for AnimationStyles and AnimationKeyframe ( #14107 )
2017-01-25 11:51:02 -08:00
Dzmitry Shylovich
fd4f9acbcf
fix(core): export animation classes required for Renderer impl ( #14002 )
...
Closes #14001
2017-01-25 10:32:16 -08:00
Alex Eagle
3bcba8a570
chore(docs): add missing comments ( #14003 )
...
This is a load-bearing change to avoid duplicate licenses in closure-compiled bundles.
See https://github.com/angular/tsickle/issues/332
2017-01-25 10:30:46 -08:00
Tim Consolazio
7ffd10541d
refactor(core): remove an unused import in application_ref ( #13901 )
2017-01-18 18:27:52 -06:00
Victor Berchet
4b56f79328
refactor(test): <template>/<ng-container>/*-directives
...
- remove outer `<div>` in tests,
- use `<ng-container>` instead of `<template>` where possible,
- use *... instead of template (tag or attr) where possible.
Fixes #13816
2017-01-11 11:33:30 -08:00
Victor Berchet
83d0ff6d13
refactor(Compiler): misc cleanup
2017-01-10 16:50:20 -08:00
Matias Niemelä
f1cde4339b
fix(core): animations no longer silently exits if the element is not apart of the DOM ( #13763 )
2017-01-06 11:00:12 -08:00
Dzmitry Shylovich
5f49c3ed23
fix(common): do not override locale provided on bootstrap ( #13654 )
...
Closes #13607
2017-01-06 11:00:11 -08:00
William KOZA
21f5f05893
fix(core): Remove reference to "Angular 2" in dev mode warning ( #13751 )
2017-01-06 11:00:11 -08:00
Jon Walsh
f2ee81fa7a
Typo ( #13698 )
2017-01-06 11:00:11 -08:00
Tobias Bosch
230e33f3f1
fix(compiler): don’t throw when using ANALYZE_FOR_ENTRY_COMPONENTS with user classes ( #13679 )
...
Fixed #13565
2017-01-05 21:21:33 -08:00
Tsuyoshi Ito
ec0ca01224
docs(Core): fix API docs for ContentChild and ViewChildren ( #13656 )
...
Move the documentations of the ContentChild and ViewChildren decorators
so that they appear correctly on angular.io.
Closes #13625
2017-01-05 21:21:22 -08:00
Tobias Bosch
1cd73c7a79
fix(compiler): query <template> elements before their children. ( #13677 )
...
Fixes #13118
Closes #13167
2017-01-05 21:20:56 -08:00
Victor Berchet
dab15c79dd
chore(tslint): update tslint to 4.x ( #13603 )
2017-01-05 21:14:28 -08:00
Dzmitry Shylovich
0e7f9f0bff
fix(testing): improve misleading error message when don't call compileComponents ( #13543 )
...
Closes #11301
2017-01-05 21:05:39 -08:00
Matias Niemelä
d788c679b6
fix(animations): always recover from a failed animation step ( #13604 )
2016-12-21 14:17:45 -08:00
Dzmitry Shylovich
b9e979e0a5
fix(core): improve error message when component factory cannot be found ( #13541 )
...
Closes #12678
2016-12-21 09:49:03 -08:00
Chuck Jazdzewski
070f9d0644
refactor: formatting fixes
2016-12-19 17:18:33 -08:00
crisbeto
8d5da1e57a
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 17:09:41 -08:00
Dzmitry Shylovich
71e88a8c3c
refactor(core): fix typo ( #13515 )
...
Closes #13512
2016-12-19 17:09:40 -08:00
Tobias Bosch
1f0f429f2a
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-19 17:09:39 -08:00
Eudes Petonnet-Vincent
86c50983d7
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 17:56:20 -08:00
Miško Hevery
4d6ac9d414
fix(core): detectChanges() doesn't work on detached instance
...
Closes #13426
Closes #13472
2016-12-14 17:55:38 -08:00
Matias Niemelä
6557bc34f6
fix(animations): throw errors and normalize offset beyond the range of [0,1]
...
Closes #13348
Closes #13440
2016-12-14 17:55:34 -08:00
Matias Niemelä
e2622add07
perf(animations): always run the animation queue outside of zones
...
Related #12732
Closes #13440
2016-12-14 17:55:27 -08:00
Pawel Kozlowski
d40bbf4d5c
fix(core): properly destroy embedded Views attatched to ApplicationRef ( #13459 )
...
Fixes #13062
2016-12-14 17:51:56 -08:00
Tobias Bosch
efa2d80df8
fix(compiler): make sure provider values with name property don’t break.
...
Fixes #13394
Closes #13445
2016-12-14 17:50:22 -08:00
Dzmitry Shylovich
9e0e6b59d1
docs(core): update OnDestroy description ( #13369 )
...
Closes #11228
2016-12-14 17:39:45 -08:00
Matias Niemelä
a26e054857
fix(animations): always cleanup players after they have finished internally ( #13334 )
...
Closes #13333
Closes #13334
2016-12-14 17:21:23 -08:00
Victor Berchet
c0b001a6af
refactor(router): misc refactoring ( #13330 )
2016-12-14 17:21:09 -08:00
Miško Hevery
16efb13dd1
fix: display framework version on bootstrapped component ( #13252 )
2016-12-06 16:21:07 -08:00
Chuck Jazdzewski
f31c9470fa
fix(compiler): short-circut expressions with an index ( #13263 )
...
Fixes #13254
2016-12-06 10:40:15 -08:00
Sarun Rattanasiri
51b06924bd
docs(core): correct HostListener typo ( #13203 )
2016-12-02 14:45:47 -08:00
Alex Rickabaugh
ae26504e84
fix(core): update peer dep on zone.js to ^0.7.2
2016-11-30 15:42:56 -08:00
Alex Rickabaugh
f275f36081
fix(version): take all of version string after patch version
2016-11-30 14:25:11 -08:00
Victor Savkin
e628b66cca
feat(build): record angular version in the dom ( #13164 )
2016-11-30 13:52:08 -08:00
Misko Hevery
c4bbafc291
feat: upgrade zone.js to v0.7.1
2016-11-29 17:24:00 -08:00
Misko Hevery
2d6a003dba
feat: update RxJS peer dependency to 5.0.0-rc.4
...
Closes #13125
RxJS from beta-12 to rc.4, has removed the `cache`
operator. (See https://github.com/ReactiveX/rxjs/blob/master/CHANGELOG.md#breaking-changes-1 )
If your application relies on it, then we suggest
that you use the one from this gist:
https://gist.github.com/robwormald/19dea0c70a6e01aadced6731aed4f9f7
2016-11-29 16:27:33 -08:00
Tobias Bosch
f5c8e0989d
feat(core): properly support inheritance
...
## Inheritance Semantics:
Decorators:
1) list the decorators of the class and its parents in the ancestor first order
2) only use the last decorator of each kind (e.g. @Component / ...)
Constructor parameters:
If a class inherits from a parent class and does not declare
a constructor, it inherits the parent class constructor,
and with it the parameter metadata of that parent class.
Lifecycle hooks:
Follow the normal class inheritance model,
i.e. lifecycle hooks of parent classes will be called
even if the method is not overwritten in the child class.
## Example
E.g. the following is a valid use of inheritance and it will
also inherit all metadata:
```
@Directive({selector: 'someDir'})
class ParentDirective {
constructor(someDep: SomeDep) {}
ngOnInit() {}
}
class ChildDirective extends ParentDirective {}
```
Closes #11606
Closes #12892
2016-11-28 14:12:12 -08:00