Misko Hevery
743d8bc845
feat(ivy): add canonical example of a pipe. ( #21834 )
...
PR Close #21834
2018-02-02 07:51:23 -08:00
Chuck Jazdzewski
65cf1add97
fix(ivy): remove unnecessary parameter of NgOnChangesFeature ( #21879 )
...
PR Close #21879
2018-02-01 08:33:36 -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
Kara Erickson
0365592119
test(ivy): add canonical view query example ( #21912 )
...
PR Close #21912
2018-01-31 10:19:15 -08:00
Pawel Kozlowski
407b5cf408
refactor(ivy): re-introduce QueryPredicate with more focused role ( #21857 ) ( #21857 )
...
PR Close #21857
PR Close #21857
2018-01-30 11:52:35 -08:00
Pawel Kozlowski
4c1743cce3
refactor(ivy): rename QueryPredicate to LQuery ( #21857 )
...
PR Close #21857
2018-01-30 11:52:35 -08:00
Pawel Kozlowski
7305e8b45e
refactor(ivy): rename LQuery to LQueries and associated renames ( #21857 )
...
PR Close #21857
2018-01-30 11:52:32 -08:00
Pawel Kozlowski
285dd6be34
feat(ivy): observable QueryList ( #21859 )
...
PR Close #21859
2018-01-30 11:43:38 -08:00
Jason Aden
02483a01ad
Revert: "refactor(ivy): save check methods separately"
...
This reverts commit 278889c7b420e530834c457f82a54e33a846a828.
2018-01-29 21:42:37 -08:00
Kara Erickson
8dff9d84ed
refactor(ivy): save check methods separately ( #21795 )
...
PR Close #21795
2018-01-29 16:12:02 -08:00
Chuck Jazdzewski
d364117aa8
fix(ivy): correct errors in template variable specification ( #21759 )
...
PR Close #21759
2018-01-27 10:49:30 -08:00
Pawel Kozlowski
6245637e81
fix(ivy): correct query read logic after merges ( #21749 )
...
PR Close #21749
2018-01-27 10:49:09 -08:00
David-Emmanuel Divernois
ab69f12e2c
refactor(ivy): code review changes ( #21638 )
...
PR Close #21638
2018-01-27 10:48:39 -08:00
David-Emmanuel Divernois
1278cca883
perf(ivy): removes generation of comments ( #21638 )
...
PR Close #21638
2018-01-27 10:48:39 -08:00
Victor Berchet
2af19c96f2
fix(core): fix retrieving the binding name when an expression changes ( #21814 )
...
fixes #21735
fixes #21788
PR Close #21814
2018-01-26 15:34:47 -08:00
Kara Erickson
dcca799dbb
fix(ivy): call onChanges before onInit ( #21793 )
...
PR Close #21793
2018-01-26 14:57:03 -08:00
Kara Erickson
d3d3f7191a
test(ivy): add canonical lifecycle example ( #21793 )
...
PR Close #21793
2018-01-26 14:57:03 -08:00
Pawel Kozlowski
f9381e42de
feat(ivy): implement QueryList array-related methods ( #21778 )
...
PR Close #21778
2018-01-25 22:19:43 -08:00
Pawel Kozlowski
5269ce287e
feat(ivy): support deep queries through view boundaries ( #21700 )
...
PR Close #21700
2018-01-24 22:18:38 -08:00
Kara Erickson
3e03dbe576
refactor(ivy): flatten hooks and collapse LView hook properties ( #21650 )
...
PR Close #21650
2018-01-24 22:14:33 -08:00
Kara Erickson
33b338120c
refactor(ivy): move onDestroys out of cleanup ( #21650 )
...
PR Close #21650
2018-01-24 22:14:33 -08:00
Kara Erickson
811679a583
refactor(ivy): remove unnecessary Comp.r function ( #21650 )
...
PR Close #21650
2018-01-24 22:14:33 -08:00
Kara Erickson
2c33d17609
refactor(ivy): move content and view hooks into TView ( #21650 )
...
PR Close #21650
2018-01-24 22:14:32 -08:00
Kara Erickson
9c99e6a838
refactor(ivy): move init hooks into TView ( #21650 )
...
PR Close #21650
2018-01-24 22:14:32 -08:00
Kara Erickson
98174758ad
refactor(ivy): add type and hooks to directive def ( #21650 )
...
PR Close #21650
2018-01-24 22:14:32 -08:00
Kara Erickson
97b928053d
fix(ivy): correct onDestroy order for projected components ( #21650 )
...
PR Close #21650
2018-01-24 22:14:32 -08:00
Kara Erickson
1fe55e252c
feat(ivy): add afterContentInit and afterContentChecked to render3 ( #21650 )
...
PR Close #21650
2018-01-24 22:14:32 -08:00
Kara Erickson
53ed4b4648
test(ivy): add missing lifecycle tests for projected components ( #21650 )
...
PR Close #21650
2018-01-24 22:14:32 -08:00
Miško Hevery
1e9cd95f5c
test(ivy): content projection canonical example ( #21674 )
...
PR Close #21674
2018-01-23 16:42:07 -08:00
Chuck Jazdzewski
c65634215b
feat(ivy): update specification to include template variables ( #21677 )
...
PR Close #21677
2018-01-23 13:32:57 -08:00
Alex Rickabaugh
0ad02de47e
feat(ivy): support for the ngForOf directive, with tests ( #21430 )
...
Implement NgOnChangesFeature, ViewContainerRef, TemplateRef,
and the renderEmbeddedTemplate instruction, and wire together the
pieces required for the ngForOf directive to work.
PR Close #21430
2018-01-23 12:54:39 -08:00
Alex Rickabaugh
6472661ae8
refactor(ivy): avoid circular dep with query/di/instructions ( #21430 )
...
To prepare for pending ngForOf work, the dep from instructions -> query
should be broken. This will enable a dep from di -> instructions while
avoiding a di -> instructions -> query -> di cycle.
Analyzing this cycle also uncovered another problem: the implementation
of query() breaks tree-shaking through a hard dependency on DI concepts
of TemplateRef, ElementRef, ViewContainerRef. This is fundamentally due
to how query() can query for those values without any configuration.
Instead, this fix introduces the concept by employing the strategy
pattern, and redefining QueryReadType to pass a function which will
return one of the above values. This strategy is then used for 'read'
instead of an enum in cases where special values should be read from
the DI system.
PR Close #21430
2018-01-23 12:54:39 -08:00
Alex Rickabaugh
c5586b7dfa
fix(ivy): assertLessThan asserts the wrong thing ( #21430 )
...
assertLessThan() actually does the opposite of what it advertises.
It's only through luck that existing asserts have not failed
before. This changes assertLessThan to actually assert that the
value is less than something.
PR Close #21430
2018-01-23 12:54:39 -08:00
Marc Laval
a0dc0a2f46
test(ivy): add render3 integration tests ( #21557 )
...
PR Close #21557
2018-01-19 15:23:52 -08:00
Kara Erickson
e18f1de003
refactor(ivy): remove unnecessary D instruction ( #21484 )
...
PR Close #21484
2018-01-19 15:23:17 -08:00
Chuck Jazdzewski
21e37e47c6
fix(ivy): update the compiler specification ( #21656 )
...
Also make a minor fix for directive definitions
PR Close #21656
2018-01-19 13:23:54 -08:00
Alex Eagle
a1492a73ce
build: Remove angular_src nested workspace ( #21096 )
...
PR Close #21096
2018-01-19 10:17:37 -08:00
harunurhan
d3d9aac4e9
feat(core): optional generic type for ElementRef ( #20765 )
...
Add optional, backwards compatible generic type to `ElementRef` to
support typed `nativeElement`
Fix #13139
PR Close #20765
2018-01-17 17:01:49 -08:00
Miško Hevery
1ccc3242f1
docs(ivy): add feature principle doc ( #21565 )
...
PR Close #21565
2018-01-17 17:01:09 -08:00
Chuck Jazdzewski
47b7898697
Revert "fix(core): fix chained http call ( #20924 )"
...
This reverts commit 7e3f9a482a
.
2018-01-17 15:28:21 -08:00
Xander Garbett
d3bf54bdeb
feat(core): add binding name to content changed error ( #20352 )
...
Adding the binding name to the error message recieved by the user gives
extra context on what exactly changed. The tests are also updated to
reflect the new error message.
PR Close #20352
2018-01-17 07:16:40 -08:00
Benjamin Ingberg
7e3f9a482a
fix(core): fix chained http call ( #20924 )
...
Fixes an issue where chained http calls would prematurely call
testability whenStable callbacks after the first http call.
Fixes #20921
PR Close #20924
2018-01-17 07:13:57 -08:00
Brian Douglas
fb4d84d5b8
refactor(core): Refactor IterableDiffers#create method ( #21383 )
...
Remove unneeded else clause to show that `new IterableDiffers(factories);` is returned by default.
PR Close #21383
2018-01-16 16:26:32 -08:00
Kara Erickson
efe545a878
refactor(ivy): add TView and TContainer ( #21463 )
...
PR Close #21463
2018-01-16 10:51:55 -08:00
Victor Berchet
3bcc0e6f76
refactor(core): refactor WrappedValue ( #20997 )
...
- Improve `WrappedValue` by adding `unwrap` symetrical to `wrap`.
- remove dead code - `ValueUnwrapper`
The property `wrapped` is an implementation details and should never be accessed
directly - use `unwrap(wrappedValue)`. Will change to protected in Angular 7.
PR Close #20997
2018-01-16 07:12:58 -08:00
Alex Eagle
6af3672185
fix(ivy): Add workaround for AJD in google3 ( #21488 )
...
PR Close #21488
2018-01-11 13:57:55 -08:00
Miško Hevery
5eaaac35a8
refactor(ivy): remove `type` from `DirectiveDef` ( #21374 )
...
This change makes the code cleaner for the user. It does mean
a little bit more work for us since we have to patch the `type` back
into the `DirectiveDef`. However since the patching happens only once
on startup it should not be significant.
PR Close #21374
2018-01-11 07:02:18 -08:00
Miško Hevery
16232f000f
refactor(ivy): merged containerStart/containerEnd ( #21374 )
...
This separation is no longer needed since directives are now passed into the `container` as an array rather than as child functions of the `containerStart`
PR Close #21374
2018-01-11 07:02:18 -08:00