Kara Erickson
e2e80ec61c
refactor(ivy): remove pipe references from the template ( #23032 )
...
PR Close #23032
2018-03-28 09:17:27 -07:00
Kara Erickson
5a86f7144f
fix(ivy): store local variables in data instead of calling loadDirective ( #23029 )
...
PR Close #23029
2018-03-28 09:17:05 -07:00
Kara Erickson
f739f756ce
test(ivy): fix flaky tests ( #23010 )
...
PR Close #23010
2018-03-27 14:48:50 -04:00
Kara Erickson
910a16a1ff
refactor(ivy): remove directive references from template ( #22986 )
...
PR Close #22986
2018-03-26 22:33:23 -04:00
Kara Erickson
49396ca2ae
refactor(ivy): move directives into separate array ( #22918 )
...
PR Close #22918
2018-03-22 21:23:02 -04:00
Kara Erickson
e44f69c387
refactor(ivy): move dir flags to tnode ( #22901 )
...
PR Close #22901
2018-03-22 19:19:40 -04:00
Kara Erickson
e27cfd6236
refactor(ivy): split up directiveCreate for tree shaking ( #22838 )
...
PR Close #22838
2018-03-18 11:56:35 -07:00
Kara Erickson
4f21d373b7
refactor(ivy): move hostBindings calls out of template ( #22833 )
...
PR Close #22833
2018-03-18 11:41:39 -07:00
Kara Erickson
bafdad9083
fix(ivy): cache local names and support multiple locals with same value ( #22807 )
...
PR Close #22807
2018-03-16 11:26:38 -07:00
Kara Erickson
e55bf8fa79
refactor(ivy): access component def through tData ( #22771 )
...
PR Close #22771
2018-03-15 14:49:23 -07:00
Miško Hevery
112431db69
test(ivy): add canonical compiler spec for class/style ( #22719 )
...
Adds a stub for `elementStyle` and `elementClass` instruction
with a canonical spec for the compiler. The spec shows the the
compiler should be using `elementStyle` and `elementClass` instruction
in place of `[class]` and `[style]` bindings respectively.
PR Close #22719
2018-03-14 12:59:52 -07:00
Miško Hevery
a0a01f1e1e
refactor(ivy): rename class/style to make space for new instruction ( #22719 )
...
Rename:
- `elementClass` (short: `k`) => `elementClassNamed` (short: `kn`)
- `elementStyle` (short: `s`) => `elementStyleNamed` (short: `sn`)
Currently `[class.name]` is `elementClass(0, ‘name’, value)`. We would
like to introduce new binding `[class]` which needs a new instruction
ideally `elementClass(0, value)`. Doing the rename creates space
to create such an instruction in subsequent change.
PR Close #22719
2018-03-14 12:59:52 -07:00
Pawel Kozlowski
c09bd67aee
fix(ivy): fix views manipulation logic ( #22656 )
...
This commit fixes a bug that would result in views insert / remove
even if a view needed only refresh operation.
The crux of the bug was that we were looking for a view to update
only in the LContainer.nextIndex position. This is incorrect as a
view with a given block id could be present later in the views
array (this happens if we about to remove a view in the middle of
the views array).
The code in this fix searches for a view to update in the views array and
can remove views in the middle of the views collection. Previously we
would remove views at the end of the collection only.
PR Close #22656
2018-03-14 12:07:15 -07:00
Kara Erickson
b1365d1fa8
refactor(ivy): remove directiveRefresh instruction ( #22745 )
...
PR Close #22745
2018-03-13 23:29:21 -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
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
4c089c1d93
feat(ivy): support ChangeDetectorRef.detectChanges ( #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
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
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
Kara Erickson
9eaf1bbe67
feat(ivy): support injecting ChangeDetectorRef ( #22469 )
...
PR Close #22469
2018-02-28 13:35:48 -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
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
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
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
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
5e4af7c550
fix(ivy): o2+ should work with multiple template instances ( #22075 )
...
Closes #22075
2018-02-13 10:24:41 -08:00
Victor Berchet
62e7b9da1e
refactor(ivy): code simplification ( #22082 )
...
PR Close #22082
2018-02-12 10:00:56 -08:00
Victor Berchet
61341b2791
refactor(ivy): generatePropertyAliases ( #22082 )
...
PR Close #22082
2018-02-12 10:00:56 -08:00
Victor Berchet
3f5a3d6ea1
refactor(ivy): add internal isProceduralRenderer()
( #22055 )
...
PR Close #22055
2018-02-07 17:03:25 -08:00
Victor Berchet
10a014d89e
refactor(ivy): prefix viewStart & viewEnd with embedded ( #22055 )
...
PR Close #22055
2018-02-07 17:03:25 -08:00
Kara Erickson
4d62be69c5
feat(ivy): memoize array literals in render3 ( #21973 )
...
PR Close #21973
2018-02-06 08:01:52 -08:00
Victor Berchet
0846784b98
fix(ivy): improve bindV
perf and memory usage ( #21881 )
...
- Fix the case when first dynamic values are NO_CHANGE
- Do not store the static texts (even indexes) as bindings,
- Do not diff static texts (they do not change),
- Do not stringify static texts,
- Remove superfluous values walking.
PR Close #21881
2018-02-05 13:01:37 -08:00
Victor Berchet
0d10b9002e
refactor(ivy): simplify bind code ( #21881 )
...
PR Close #21881
2018-02-05 13:01:37 -08:00
Pawel Kozlowski
1aa2947f70
feat(ivy): add support for attributes on ng-content nodes ( #21935 )
...
By adding attributes on the <ng-content> element template authors
can decide how content should be re-projected (or, in other words:
which selectors should match re-projected content).
PR Close #21935
2018-02-01 08:30:26 -08:00
Kara Erickson
9dca5f2743
refactor(ivy): save check methods separately ( #21795 ) ( #21905 )
...
PR Close #21795
PR Close #21905
2018-01-31 10:19:34 -08:00
Kara Erickson
81306c1f61
feat(ivy): add support for content query ( #21912 )
...
PR Close #21912
2018-01-31 10:19:15 -08:00