38 Commits

Author SHA1 Message Date
Kara Erickson
f76ce84ae1 fix(ivy): host bindings should work on nodes with providers ()
PR Close 
2018-10-26 15:49:30 -04:00
Marc Laval
b0476f308b feat(ivy): support providers and viewProviders ()
PR Close 
2018-10-25 12:58:40 -04:00
Matias Niemelä
297dc2bc02 fix(ivy): ensure ngClass works with [class] bindings ()
PR Close 
2018-10-24 20:27:12 -04:00
Kara Erickson
7ea5161d4d refactor(ivy): merge directives into LViewData ()
PR Close 
2018-10-09 16:46:00 -07:00
Kara Erickson
51dfdd5dd1 fix(ivy): sync view with blueprint when necessary ()
PR Close 
2018-10-05 13:39:03 -07:00
Kara Erickson
831e71ea3c fix(ivy): host bindings should support array/object literals ()
PR Close 
2018-08-21 10:48:42 -07:00
Kara Erickson
21a14407f6 refactor(ivy): generate vars in component defs ()
PR Close 
2018-08-20 11:08:10 -07:00
Kara Erickson
f2aa9c6a7f refactor(ivy): use generated consts value to set binding index ()
PR Close 
2018-08-17 14:32:55 -07:00
Kara Erickson
2ef777b0b2 fix(ivy): convert context code into a tree-shakable instruction ()
PR Close 
2018-07-30 15:54:11 -07:00
Victor Berchet
89e8b6fc0e refactor(ivy): update specs to make use of the element() instruction ()
PR Close 
2018-07-27 17:22:18 -07:00
George Kalpakas
00c110b055 build: upgrade jasmine (and related typings) to latest version ()
With these changes, the types are a little stricter now and also not
compatible with Protractor's jasmine-like syntax. So, we have to also
use `@types/jasminewd2` for e2e tests (but not for non-e2e tests).

I also had to "augment" `@types/jasminewd2`, because the latest
typings from [DefinitelyTyped][1] do not reflect the fact that the
`jasminewd2` version (v2.1.0) currently used by Protractor supports
passing a `done` callback to a spec.

[1]: 566e039485/types/jasminewd2/index.d.ts (L9-L15)

Fixes 
Closes 

PR Close 
2018-07-06 13:48:02 -07:00
Rado Kirov
c95437f15d build(bazel): Turning on strictPropertyInitialization for Angular. ()
All errors for existing fields have been detected and suppressed with a
`!` assertion.

Issue/24571 is tracking proper clean up of those instances.

One-line change required in ivy/compilation.ts, because it appears that
the new syntax causes tsickle emitted node to no longer track their
original sourceFiles.

PR Close 
2018-06-25 07:57:13 -07:00
Kara Erickson
de3ca56769 fix(ivy): support separate creation mode and update mode execution in runtime ()
PR Close 
2018-04-11 15:30:39 -07:00
Miško Hevery
60065935be refactor(ivy): align compiler with runtime ()
Remove `containerRefreshStart` and `containerRefreshEnd` instruction
from the output.

Generate directives as a list in `componentDef` rather than inline into
instructions. This is consistent in making selector resolution runtime
so that translation of templates can follow locality.

PR Close 
2018-04-02 15:49:48 -07:00
Kara Erickson
6e5fb99304 refactor(ivy): flatten css selectors ()
PR Close 
2018-03-30 15:27:50 -07:00
Kara Erickson
5a86f7144f fix(ivy): store local variables in data instead of calling loadDirective ()
PR Close 
2018-03-28 09:17:05 -07:00
Kara Erickson
910a16a1ff refactor(ivy): remove directive references from template ()
PR Close 
2018-03-26 22:33:23 -04:00
Kara Erickson
49396ca2ae refactor(ivy): move directives into separate array ()
PR Close 
2018-03-22 21:23:02 -04:00
Kara Erickson
4f21d373b7 refactor(ivy): move hostBindings calls out of template ()
PR Close 
2018-03-18 11:41:39 -07:00
Kara Erickson
b1365d1fa8 refactor(ivy): remove directiveRefresh instruction ()
PR Close 
2018-03-13 23:29:21 -07:00
Marc Laval
aad431642a refactor(ivy): rename componentRefresh to directiveRefresh ()
PR Close 
2018-02-23 09:42:08 -08:00
Victor Berchet
5a14e2238f refactor(ivy): split the memory instruction into store and load ()
PR Close 
2018-02-18 18:48:41 -08:00
Victor Berchet
5dd2b5135d refactor(ivy): rename bindX() functions to interpolationX() ()
rationale: remove the confusion with `bind()` and `bind0()`

PR Close 
2018-02-15 14:20:53 -08:00
Victor Berchet
10a014d89e refactor(ivy): prefix viewStart & viewEnd with embedded ()
PR Close 
2018-02-07 17:03:25 -08:00
Victor Berchet
8feb8e5408 refactor(ivy): use long instruction format in tests ()
PR Close 
2018-02-07 17:03:25 -08:00
Kara Erickson
811679a583 refactor(ivy): remove unnecessary Comp.r function ()
PR Close 
2018-01-24 22:14:33 -08:00
Kara Erickson
98174758ad refactor(ivy): add type and hooks to directive def ()
PR Close 
2018-01-24 22:14:32 -08:00
Kara Erickson
e18f1de003 refactor(ivy): remove unnecessary D instruction ()
PR Close 
2018-01-19 15:23:17 -08:00
Miško Hevery
5eaaac35a8 refactor(ivy): remove type from DirectiveDef ()
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 
2018-01-11 07:02:18 -08:00
Miško Hevery
16232f000f refactor(ivy): merged containerStart/containerEnd ()
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 
2018-01-11 07:02:18 -08:00
Misko Hevery
a6d41c47a9 refactor(ivy): move directive into elementStart ()
We used to have a separate `directive` instruction for instantiating
directives. However, such an instruction requires that directives
are created in the correct order, which would require that template
compiler would have knowledge of all dependent directives. This
would break template compilation locality principle.

This change only changes the APIs to expected form but does
not change the semantics. The semantics will need to be corrected
in subsequent commits. The semantic change needed is to
resolve the directive instantiation error at runtime based on
injection dependencies.

PR Close 
2018-01-11 07:02:17 -08:00
Marc Laval
a2f3f4550d test(core): properly stringify HTML elements in render3 tests ()
PR Close 
2018-01-05 14:25:40 -08:00
Kara Erickson
c516bc3b35 feat(core): add ngOnInit and ngDoCheck support in render3 ()
PR Close 
2017-12-27 16:46:56 -06:00
Miško Hevery
1f5049f30c style: fix formatting errors ()
PR Close 
2017-12-21 21:40:58 -08:00
Kara Erickson
19eeba2281 refactor(core): rename instructions for consistency ()
PR Close 
2017-12-21 21:40:58 -08:00
Kara Erickson
8fdb1e09c1 refactor(core): store directive defs in static data ()
PR Close 
2017-12-21 21:40:58 -08:00
Miško Hevery
93b00cceb6 refactor(core): store locals in main array in rederer3 ()
PR Close 
2017-12-21 21:40:58 -08:00
Miško Hevery
0fa818b318 feat(core): Moving Renderer3 into @angular/core ()
PR Close 
2017-12-21 21:40:58 -08:00