Jason Aden
043e408805
style(core): fix comment format for linter
2017-11-15 11:53:11 -08:00
George Kalpakas
c004d483ab
style(core): fix max line length to pass linting ( #20441 )
...
Accidentally introduced in #19920 , where other linting errors (unrelated to the
PR) prevented proper linting.
PR Close #20441
2017-11-15 11:44:52 -08:00
Matias Niemelä
d47b2a6f70
fix(animations): always fire inner trigger callbacks even if blocked by parent animations ( #19753 )
...
Closes #19100
PR Close #19753
2017-11-14 15:59:47 -08:00
Martin Hobert
12af6d356e
docs(core): change from deprecated renderer to renderer2 ( #19920 )
...
We now show the proper class instead of the deprecated Renderer
Fixes #19806
PR Close #19920
2017-11-14 13:44:56 -08:00
Matias Niemelä
20aafff092
fix(animations): ensure final state() styles are applied within @.disabled animations ( #20267 )
...
Closes #20266
PR Close #20267
2017-11-14 11:01:11 -08:00
Chuck Jazdzewski
24cf8b3269
fix(core): ensure init lifecycle events are called ( #20258 )
...
Throwing an exception in a lifecycle event will delay but not
prevent an Init method, such as `ngOnInit`, `ngAfterContentInit`,
or `ngAfterViewInit`, from being called. Also, calling `detectChanges()`
in a way that causes duplicate change detection (such as a
child component causing a parent to call `detectChanges()` on its
own `ChangeDetectorRef`, will no longer prevent change `ngOnInit`,
`ngAfterContentInit` and `ngAfterViewInit` from being called.
With this change lifecycle methods are still not guarenteed to be
called but the Init methods will be called if at least one change
detection pass on its view is completed.
Fixes : #17035
PR Close #20258
2017-11-10 13:47:39 -08:00
Fabian Wiles
b55c2ba342
refactor(core): remove prolyfill from error message ( #20121 )
...
PR Close #20121
2017-11-10 11:51:15 -08:00
Victor Berchet
6e8e3bd248
refactor(core): misc changes and integrate review feedback on #19996
...
closes #20224
2017-11-06 14:13:02 -08:00
Tobias Bosch
a460066972
feat(compiler): introduce TestBed.overrideTemplateUsingTestingModule
...
This allows to overwrite templates for JIT and AOT components alike.
In contrast to `TestBed.overrideTemplate`, the template is compiled
in the context of the testing module, allowing to use other testing
directives.
Closes #19815
2017-11-06 14:12:30 -08:00
Tobias Bosch
05d96dc507
feat(core): allow to pass in aot summaries also to TestBed.configureTestingModule
...
Also adds caching for summaries.
Closes #19817 .
2017-11-06 14:12:30 -08:00
Victor Berchet
f0764016f9
revert: feat(core): add source to StaticInjectorError
message ( #19482 ) ( #20171 )
...
This reverts commit faa621218e0f55b38cb2bcf58e5e93066030e361.
2017-11-03 14:51:06 -07:00
Olivier Combe
faa621218e
feat(core): add source to StaticInjectorError
message ( #19482 )
2017-11-03 11:14:05 -07:00
George Kalpakas
901436e46f
docs: fix link texts
...
Fixes #19701
PR Close #19709
2017-11-01 15:44:59 -04:00
Hans Larsen
b6abcb2500
refactor: make all rollup config ES5 compatible ( #20028 )
...
So they can be required by other Node scripts.
PR Close #20028
2017-10-30 23:09:17 -04:00
Matias Niemelä
c0cc6eeca1
test(animations): ensure :enter callbacks fire on container insertion ( #19674 )
...
PR Close #19674
2017-10-18 11:18:08 -07:00
Jason Aden
7d1abd9adb
build: update to rxjs@5.5.0 ( #19345 )
...
PR Close #19345
2017-10-18 11:17:43 -07:00
Tobias Bosch
30ecb6e88a
Revert "test(animations): ensure :enter callbacks fire on container insertion ( #19674 )"
...
This reverts commit 41f57affb6ae0688ed4b6e4704bc8cf2201bc01a.
As it was synched together with 5a9ed2de272912ac74ed56bfec4bdf4551f7b38e
which broke an internal test.
2017-10-18 09:57:56 -07:00
Tobias Bosch
8d735da5d8
Revert "fix(animations): always fire inner trigger callbacks even if blocked by parent animations ( #19753 )"
...
This reverts commit 5a9ed2de272912ac74ed56bfec4bdf4551f7b38e.
As it broke an internal test.
2017-10-18 09:56:59 -07:00
Matias Niemelä
5a9ed2de27
fix(animations): always fire inner trigger callbacks even if blocked by parent animations ( #19753 )
...
Closes #19100
PR Close #19753
2017-10-17 20:57:57 -07:00
Matias Niemelä
41f57affb6
test(animations): ensure :enter callbacks fire on container insertion ( #19674 )
...
PR Close #19674
2017-10-17 20:57:48 -07:00
Matias Niemelä
d035175cdb
fix(animations): ensure inner :leave animations do not remove node when skipped ( #19532 ) ( #19693 )
...
PR Close #19693
2017-10-16 11:13:58 -07:00
Matias Niemelä
f42d317d2f
fix(animations): ensure animateChild() works with all inner leave animations ( #19006 ) ( #19532 ) ( #19693 )
...
PR Close #19693
2017-10-16 11:13:58 -07:00
Tobias Bosch
02394d2d80
fix(core): don't refer to hydration
in docs anymore.
...
Closes #18458
2017-10-13 08:53:44 -07:00
Chuck Jazdzewski
46992b4bda
Revert "fix(animations): ensure animateChild() works with all inner leave animations ( #19006 ) ( #19532 )"
...
This reverts commit 9130505b57c10dc6f4cd9b12ca47e06c4f429b74.
2017-10-11 10:51:52 -07:00
Chuck Jazdzewski
d0af45c31a
Revert "fix(animations): ensure inner :leave animations do not remove node when skipped ( #19532 )"
...
This reverts commit ac50bd678ee37c4b222baccc8412cc153a1d5a20.
2017-10-11 10:37:12 -07:00
Tobias Bosch
b0befd7376
fix(compiler): TestBed.overrideProvider
should keep imported NgModule
s eager ( #19624 )
...
Before, as soon as a user called `TestBed.overrideProvider` for a provider
of a `NgModule` that was imported via `TestBed.configureTestingModule`,
that `NgModule` became lazy.
This commit changes this behavior to keep the `NgModule` eager,
with or without a call to `TestBed.overrideProvider`.
PR Close #19624
2017-10-10 13:51:25 -07:00
Matias Niemelä
ac50bd678e
fix(animations): ensure inner :leave animations do not remove node when skipped ( #19532 )
...
PR Close #19532
2017-10-10 12:41:47 -07:00
Matias Niemelä
9130505b57
fix(animations): ensure animateChild() works with all inner leave animations ( #19006 ) ( #19532 )
...
Closes #18305
PR Close #19532
2017-10-10 12:41:47 -07:00
Tobias Bosch
931cf78057
refactor(compiler): introduce TestBed.deprecatedOverrideProvider
( #19558 )
...
This allows use to fix `TestBed.overrideProvider` to keep imported `NgModule`s eager,
while allowing our users to still keep the old semantics until they have fixed their
tests.
PR Close #19558
2017-10-10 10:15:46 -07:00
Tobias Bosch
6ade68cff1
fix(compiler): correctly instantiate eager providers that are used via Injector.get
( #19558 )
...
Closes #15501
PR Close #19558
2017-10-10 10:15:46 -07:00
Matias Niemelä
c4704c8abc
fix(animations): properly support boolean-based transitions and state changes ( #19279 )
...
Closes #9396
Closes #12337
PR Close #19279
2017-10-09 10:00:32 -07:00
Chuck Jazdzewski
9fecd72f44
Revert "test(animations): test to see if triggers get cancelled on removal ( #19532 )"
...
This reverts commit f12e15e682acc0e9bb0722e3455e68acc6687ac6.
2017-10-06 18:15:26 -07:00
Chuck Jazdzewski
f4480d46b4
Revert "fix(animations): ensure animateChild() works with all inner leave animations ( #19532 )"
...
This reverts commit 1c77cdadaf8d1ac24751a218484a8a08c13bad18.
2017-10-06 18:15:22 -07:00
Chuck Jazdzewski
6aa7cc1d96
Revert "fix(animations): properly support boolean-based transitions and state changes ( #19279 )"
...
This reverts commit a8920eb774346d809e03d992c454de18664b1be0.
2017-10-06 18:15:08 -07:00
Matias Niemelä
a8920eb774
fix(animations): properly support boolean-based transitions and state changes ( #19279 )
...
Closes #9396
Closes #12337
PR Close #19279
2017-10-06 15:35:37 -07:00
Matias Niemelä
1c77cdadaf
fix(animations): ensure animateChild() works with all inner leave animations ( #19532 )
...
Closes #18305
PR Close #19532
2017-10-06 15:35:13 -07:00
Matias Niemelä
f12e15e682
test(animations): test to see if triggers get cancelled on removal ( #19532 )
...
PR Close #19532
2017-10-06 15:35:13 -07:00
Victor Berchet
0833b59aab
refactor(core): add a checkIndex to the compiler view nodes
...
Each node now has two index: nodeIndex and checkIndex.
nodeIndex is the index in both the view definition and the view data.
checkIndex is the index in in the update function (update directives and update
renderer).
While nodeIndex and checkIndex have the same value for now, having both of them
will allow changing the structure of view definition after compilation (ie for
runtime translations).
2017-10-04 14:55:54 -07:00
Victor Berchet
14e8e88022
Revert "refactor(core): Change abstract get
to readonly
( #19226 )"
...
This reverts commit 3aa3d5c5480cb8f0c1be61902aa15ce6a424c2eb.
2017-09-28 13:36:56 -07:00
Victor Berchet
6a9ce67714
Revert "refactor(core): Removed readonly getters and changed to readonly ( #19225 )"
...
This reverts commit 2b84b86fc08a4ecb3078bd8b3a1bfc7b07946b20.
2017-09-28 13:36:44 -07:00
tinayuangao
2b84b86fc0
refactor(core): Removed readonly getters and changed to readonly ( #19225 )
...
variables
2017-09-28 09:36:29 -07:00
tinayuangao
3aa3d5c548
refactor(core): Change abstract get
to readonly
( #19226 )
2017-09-28 09:36:13 -07:00
Alex Eagle
82e49230ff
build: Give names to the AMD modules nested in Angular UMD distro ( #19425 )
2017-09-28 09:29:22 -07:00
Tobias Bosch
a7798f2a93
fix: don’t use the global ng
at all with closure enhanced optimizations
...
This is needed as:
- closure declares globals itself for minified names, which sometimes clobber our `ng` global
- we can't declare a closure extern as the namespace `ng` is already used within Google for typings for angularJS (via `goog.provide('ng....')`).
2017-09-27 10:09:56 -07:00
Tobias Bosch
b21a1d1961
fix: create proper externs so that closure does not clobber e.g. ng
for internal variables ( #19423 )
2017-09-26 15:02:33 -07:00
Matias Niemelä
86ffacf7ce
feat(animations): support negative query option values
...
closes #19259
2017-09-26 12:02:56 -07:00
Matias Niemelä
b54368bf35
fix(animations): properly support the query limit option value
...
Closes #19232
2017-09-26 12:02:43 -07:00
Chuck Jazdzewski
f57b7df4d7
fix(compiler): remove deprecated Compiler.ngGetContentSelectors()
( #19347 )
...
BREAKING CHANGE:
The method `ngGetConentSelectors()`, deprecated in Angular 4.0, has been
removed.
Use `ComponentFactory.ngContentSelectors` instead.
2017-09-26 10:18:10 -07:00
Tobias Bosch
1dacae2c3c
fix(compiler): work well with forwardRef
with useValue
/ useFactory
...
The new expression lowering lowers everything after `useValue` / `useFactory`
into a separate exported variable. If the value was a `forwardRef`, this
was passed to the runtime and resulted in errors.
This change unwraps `forwardRef`s during runtime again.
Note: we can’t unwrap the `forwardRef` into an exported variable
during compile time, as this would defeat the purpose of the
`forwardRef` in referring to something that can’t be referred to
at this position.
2017-09-25 13:36:00 -07:00
Olivier Combe
0f5c70d563
build: update npm dependencies ( #19328 )
...
PR Close #19328
2017-09-22 13:20:52 -07:00