Kara Erickson
bd9d4df735
refactor(ivy): remove inputsPropertyName ( #22716 )
...
Closes #22591
PR Close #22716
2018-03-13 13:26:15 -07:00
Matias Niemelä
58b94e6f5e
feat(animations): expose element
and params
within transition matchers ( #22693 )
...
PR Close #22693
2018-03-13 09:42:24 -07:00
Alex Rickabaugh
db56836425
feat: tree-shakeable providers API updates ( #22655 )
...
Rename @Injectable({scope -> providedIn}).
Instead of {providedIn: APP_ROOT_SCOPE}, accept {providedIn: 'root'}.
Also, {providedIn: null} implies the injectable should not be added
to any scope.
PR Close #22655
2018-03-13 09:28:05 -07:00
Marc Laval
f95730b8e2
fix(ivy): elements properties should not be stringified ( #22683 )
...
PR Close #22683
2018-03-12 13:16:05 -07:00
Chuck Jazdzewski
8449eb8d62
build: upgrade to TypeScript 2.7 ( #22669 )
...
Fixes : #21571
PR Close #22669
2018-03-12 09:27:23 -07:00
Kara Erickson
aa7dba244b
feat(ivy): support checkNoChanges ( #22710 )
...
PR Close #22710
2018-03-11 22:16:38 -07:00
Kara Erickson
fa451bcd19
feat(ivy): support markForCheck ( #22690 )
...
PR Close #22690
2018-03-09 20:29:05 -08:00
Kara Erickson
b26a90567c
feat(ivy): support attaching and detaching views from change detection ( #22670 )
...
PR Close #22670
2018-03-08 23:44:33 -08:00
Kara Erickson
5412e10bcd
docs(core): replace ancient live demos ( #22665 )
...
PR Close #22665
2018-03-08 16:43:14 -08:00
Misko Hevery
2fee5cc095
test(ivy): add injection canonical specs ( #22595 )
...
PR Close #22595
2018-03-08 12:09:39 -08:00
Kara Erickson
4c089c1d93
feat(ivy): support ChangeDetectorRef.detectChanges ( #22614 )
...
PR Close #22614
2018-03-07 21:08:25 -08:00
Kara Erickson
d485346d3c
fix(ivy): lifecycle hooks should be queued for root component ( #22614 )
...
PR Close #22614
2018-03-07 21:08:25 -08:00
Marc Laval
f64ee15487
feat(ivy): implement pipes ( #22254 )
...
PR Close #22254
2018-03-07 20:58:48 -08:00
Marc Laval
5d4fa7f0c8
test(ivy): add canonical examples of bindings on elements ( #22403 )
...
PR Close #22403
2018-03-07 20:55:49 -08:00
Miško Hevery
6d1367d297
feat(ivy): provide sanitization methods which can be tree shaken ( #22540 )
...
By providing a top level sanitization methods (rather than service) the
compiler can generate calls into the methods only when needed. This makes
the methods tree shakable.
PR Close #22540
2018-03-07 18:24:07 -08:00
Miško Hevery
538f1d980f
refactor(core): move sanitization into core ( #22540 )
...
This is in preparation of having Ivy have sanitization inline.
PR Close #22540
2018-03-07 18:24:06 -08:00
Pawel Kozlowski
2c75acc5b3
feat(ivy): add support for the ngProjectAs attribute ( #22498 )
...
PR Close #22498
2018-03-06 06:55:51 -08:00
Kara Erickson
2c2b62f45f
fix(ivy): preventDefault when listener returns false ( #22529 )
...
Closes #22495
PR Close #22529
2018-03-05 12:15:17 -08:00
Misko Hevery
51ca643c27
test(ivy): add injectAttribute spec ( #22510 )
...
PR Close #22510
2018-03-05 10:10:32 -08:00
Kara Erickson
9eaf1bbe67
feat(ivy): support injecting ChangeDetectorRef ( #22469 )
...
PR Close #22469
2018-02-28 13:35:48 -08:00
Alex Rickabaugh
f8749bfb70
fix(core): export inject() from @angular/core ( #22389 )
...
inject() supports the ngInjectableDef-based configuration of the injector
(otherwise known as tree-shakeable services). It was missing from the
exported API of @angular/core, this PR adds it.
The test added here is correct in theory, but may pass accidentally due
to the decorator side-effect replacing the inject() call at runtime. An
upcoming compiler PR will strip reified decorators from the output
entirely.
Fixes #22388
PR Close #22389
2018-02-28 10:44:37 -08:00
Kara Erickson
8c358844dd
feat(ivy): support OnPush change detection ( #22417 )
...
PR Close #22417
2018-02-28 10:42:11 -08:00
Kara Erickson
e454c5a98e
refactor(ivy): store creationMode in LView.flags ( #22417 )
...
PR Close #22417
2018-02-28 10:42:11 -08:00
Marc Laval
aad431642a
refactor(ivy): rename componentRefresh to directiveRefresh ( #22395 )
...
PR Close #22395
2018-02-23 09:42:08 -08:00
Marc Laval
7effb0016c
fix(ivy): ngOnChanges to receive SimpleChanges with non minified property names as keys ( #22352 )
...
PR Close #22352
2018-02-22 17:48:52 -08:00
Marc Laval
b3ffeaa22b
fix(ivy): OnDestroy hook should not be called twice for a directive on an element ( #22350 )
...
PR Close #22350
2018-02-22 13:35:17 -08:00
Trotyl
b7544cccc6
feat(core): support metadata reflection for native class types ( #22356 )
...
closes #21731
PR Close #22356
2018-02-22 13:22:03 -08:00
Victor Berchet
90e9c59e23
Revert "feat(core): support metadata reflection for native class types ( #22356 )"
...
This reverts commit 5c89d6bffab52176e4afdfff1b71645cbba9bd47.
2018-02-22 10:26:06 -08:00
Trotyl
5c89d6bffa
feat(core): support metadata reflection for native class types ( #22356 )
...
closes #21731
PR Close #22356
2018-02-21 16:09:27 -08:00
Trotyl
a7ebf5aadd
fix(core): properly handle function without prototype in reflector ( #22284 )
...
closes #19978
PR Close #22284
2018-02-21 14:52:04 -08:00
Marc Laval
ee60bb5b36
fix(ivy): pureFunction8 should update the right bindings ( #22313 )
...
PR Close #22313
2018-02-20 11:36:50 -08:00
Victor Berchet
9ce495b3d8
refactor(ivy): simplify interpolation instructions ( #22268 )
...
PR Close #22268
2018-02-18 18:48:41 -08:00
Victor Berchet
d40263447d
refactor(ivy): move get functions next to their underlying variable ( #22268 )
...
PR Close #22268
2018-02-18 18:48:41 -08:00
Victor Berchet
31c5c1060a
docs(ivy): update the API docs instructions to add details about removing attributes ( #22268 )
...
PR Close #22268
2018-02-18 18:48:41 -08:00
Victor Berchet
c9ebd60435
refactor(ivy): interpolatiom instructions do not support NO_CHANGE at input. ( #22268 )
...
PR Close #22268
2018-02-18 18:48:41 -08:00
Victor Berchet
5a14e2238f
refactor(ivy): split the memory
instruction into store
and load
( #22268 )
...
PR Close #22268
2018-02-18 18:48:41 -08:00
Kara Erickson
49082d7ab2
feat(ivy): support host attributes ( #22213 )
...
PR Close #22213
2018-02-18 13:22:38 -08:00
Kara Erickson
6b627f67db
test(ivy): add missing host listener and host attribute binding tests ( #22213 )
...
PR Close #22213
2018-02-18 13:22:38 -08:00
Misko Hevery
ac2b04a5ab
test(ivy): Add small_app spec for sprint #3 ( #22018 )
...
PR Close #22018
2018-02-18 13:18:54 -08:00
Kara Erickson
f693be3996
feat(ivy): add pureFunction0 instruction ( #22214 )
...
PR Close #22214
2018-02-16 18:03:55 -08:00
Kara Erickson
a73d5308e0
refactor(ivy): rename objectLiteral to pureFn to prep for pipes ( #22214 )
...
PR Close #22214
2018-02-16 18:03:55 -08:00
Oussama Ben Brahim
f1a063298e
feat(core): set preserveWhitespaces to false by default ( #22046 )
...
Fixes #22027
PR Close #22046
2018-02-16 09:06:14 -08:00
Victor Berchet
d241532488
docs(ivy): add a note about exporting top level variables ( #22234 )
...
PR Close #22234
2018-02-15 16:16:40 -08:00
Alex Rickabaugh
f755db78dc
fix(core): require factory to be provided for shakeable InjectionToken ( #22207 )
...
InjectionToken can be created with an ngInjectableDef, and previously
this allowed the full expressiveness of @Injectable. However, this
requires a runtime reflection system in order to generate factories
from expressed provider declarations.
Instead, this change requires scoped InjectionTokens to provide the
factory directly (likely using inject() for the arguments), bypassing
the need for a reflection system.
Fixes #22205
PR Close #22207
2018-02-15 16:16:16 -08:00
Victor Berchet
5dd2b5135d
refactor(ivy): rename bindX()
functions to interpolationX()
( #22229 )
...
rationale: remove the confusion with `bind()` and `bind0()`
PR Close #22229
2018-02-15 14:20:53 -08:00
Alex Rickabaugh
7ac34e42a0
feat: allow direct scoping of @Injectables to the root injector ( #22185 )
...
@Injectable() supports a scope parameter which specifies the target module.
However, it's still difficult to specify that a particular service belongs
in the root injector. A developer attempting to ensure that must either
also provide a module intended for placement in the root injector or target
a module known to already be in the root injector (e.g. BrowserModule).
Both of these strategies are cumbersome and brittle.
Instead, this commit adds a token APP_ROOT_SCOPE which provides a
straightforward way of targeting the root injector directly, without
requiring special knowledge of modules within it.
PR Close #22185
2018-02-15 14:20:27 -08:00
Victor Berchet
a1d86daa71
refactor(ivy): assertion ( #22189 )
...
Encourage the use of message to explain the assertion
PR Close #22189
2018-02-15 09:53:05 -08:00
Matias Niemelä
f628797d91
Revert "refactor(ivy): assertion ( #22189 )"
...
This reverts commit 0b683123d280f45e4fb904c1552292f50de6bfc7.
2018-02-14 22:56:11 -05:00
Victor Berchet
0b683123d2
refactor(ivy): assertion ( #22189 )
...
Encourage the use of message to explain the assertion
PR Close #22189
2018-02-14 18:42:04 -05:00
Kara Erickson
a589ca0adb
test(ivy): clean up canonical spec ( #22188 )
...
PR Close #22188
2018-02-13 13:04:43 -08:00