1090 Commits

Author SHA1 Message Date
Chuck Jazdzewski
18174e5564 feat(ivy): support ng-content projection in the ivy compiler ()
PR Close 
2018-01-29 11:35:32 -08:00
Eli Sadoff
6e8bc310f0 docs: change ”it's" to "its" as needed in several docs. ()
Most of them are in content but one is in common and needs special approval.

PR Close 
2018-01-29 11:34:46 -08:00
vsavkin
c40ae7f7cf feat(router): add navigationSource and restoredState to NavigationStart event ()
Currently, NavigationStart there is no way to know if an navigation was triggered imperatively or via the location change. These two use cases should be handled differently for a variety of use cases (e.g., scroll position restoration). This PR adds a navigation source field and restored navigation id (passed to navigations triggered by a URL change).

PR Close 
2018-01-29 10:22:59 -08:00
Misko Hevery
5bd93b1f0f build: fix broken build ()
PR Close 
2018-01-27 14:19:29 -08:00
Alex Eagle
a1cc02f0bd build: update to latest bazel rules ()
PR Close 
2018-01-27 10:55:44 -08:00
Chuck Jazdzewski
5778bb820a fix(ivy): fix issues found producing "Hello, World" example ()
PR Close 
2018-01-27 10:50:13 -08:00
Chuck Jazdzewski
87754ad5ec fix(ivy): emit type type fields ()
PR Close 
2018-01-27 10:49:54 -08:00
Chuck Jazdzewski
d364117aa8 fix(ivy): correct errors in template variable specification ()
PR Close 
2018-01-27 10:49:30 -08:00
Pawel Kozlowski
6245637e81 fix(ivy): correct query read logic after merges ()
PR Close 
2018-01-27 10:49:09 -08:00
David-Emmanuel Divernois
ab69f12e2c refactor(ivy): code review changes ()
PR Close 
2018-01-27 10:48:39 -08:00
David-Emmanuel Divernois
1278cca883 perf(ivy): removes generation of comments ()
PR Close 
2018-01-27 10:48:39 -08:00
Jason Aden
ede9cb7c2f Revert: "feat(router): add navigationSource and restoredState to NavigationStart event ()"
This reverts commit 3b7bab7d22064d545f1745dc3e062fcb1d91073b. Will be re-merged after fixing integration of minor breaking change.
2018-01-26 16:24:56 -08:00
Victor Berchet
2af19c96f2 fix(core): fix retrieving the binding name when an expression changes ()
fixes 
fixes 

PR Close 
2018-01-26 15:34:47 -08:00
Kara Erickson
dcca799dbb fix(ivy): call onChanges before onInit ()
PR Close 
2018-01-26 14:57:03 -08:00
Kara Erickson
d3d3f7191a test(ivy): add canonical lifecycle example ()
PR Close 
2018-01-26 14:57:03 -08:00
Chuck Jazdzewski
676d9c2c4b fix(language-service): ensure correct paths are passed to TypeScript ()
The 2.6 version of TypeScript's `resolveModuleName`  started to
require paths passed to be separated by '/' instead of being
able to handle '\'.

`ngc` and `ng` already do this transformation.

Fixes: 

PR Close 
2018-01-26 14:49:23 -08:00
Chuck Jazdzewski
2b68e8d98a fix(language-service): spell diagnostics correctly ()
PR Close 
2018-01-26 14:49:23 -08:00
Patrick Shields
d964491f2a fix(router): remove @internal tag on ParamInheritanceType ()
This is a more defensive approach to ensure that references to
ParamInheritanceType from the published declarations do not cause
compilation errors when compiling Angular from the published packages.

Fixes 

PR Close 
2018-01-26 10:28:33 -08:00
vsavkin
3b7bab7d22 feat(router): add navigationSource and restoredState to NavigationStart event ()
Currently, NavigationStart there is no way to know if an navigation was triggered imperatively or via the location change. These two use cases should be handled differently for a variety of use cases (e.g., scroll position restoration). This PR adds a navigation source field and restored navigation id (passed to navigations triggered by a URL change).

PR Close 
2018-01-26 10:25:32 -08:00
Pawel Kozlowski
f9381e42de feat(ivy): implement QueryList array-related methods ()
PR Close 
2018-01-25 22:19:43 -08:00
Chuck Jazdzewski
bbb8f386f1 feat(ivy): implement template variables ()
PR Close 
2018-01-25 22:19:20 -08:00
Filipe Silva
fac4d8d42a build(common): specify explicit locales dir in package.json ()
PR Close 
2018-01-25 22:18:35 -08:00
Oussama Ben Brahim
170885c51b fix(forms): allow FormBuilder to create controls with any formState type ()
Align formState type in FormBuilder#control with FormControl#constructor

Fixes 

PR Close 
2018-01-25 22:17:43 -08:00
Pawel Kozlowski
5269ce287e feat(ivy): support deep queries through view boundaries ()
PR Close 
2018-01-24 22:18:38 -08:00
Kara Erickson
3e03dbe576 refactor(ivy): flatten hooks and collapse LView hook properties ()
PR Close 
2018-01-24 22:14:33 -08:00
Kara Erickson
33b338120c refactor(ivy): move onDestroys out of cleanup ()
PR Close 
2018-01-24 22:14:33 -08:00
Kara Erickson
811679a583 refactor(ivy): remove unnecessary Comp.r function ()
PR Close 
2018-01-24 22:14:33 -08:00
Kara Erickson
2c33d17609 refactor(ivy): move content and view hooks into TView ()
PR Close 
2018-01-24 22:14:32 -08:00
Kara Erickson
9c99e6a838 refactor(ivy): move init hooks into TView ()
PR Close 
2018-01-24 22:14:32 -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
97b928053d fix(ivy): correct onDestroy order for projected components ()
PR Close 
2018-01-24 22:14:32 -08:00
Kara Erickson
1fe55e252c feat(ivy): add afterContentInit and afterContentChecked to render3 ()
PR Close 
2018-01-24 22:14:32 -08:00
Kara Erickson
53ed4b4648 test(ivy): add missing lifecycle tests for projected components ()
PR Close 
2018-01-24 22:14:32 -08:00
Zhicheng Wang
5f681f9745 fix(compiler): Don't strip /*# sourceURL ... */ ()
Currently, `shimCssText` only keep `/*# sourceMappingUrl ... */` comments and strip `/*# sourceURL ... */` comments. So, Chrome can't find the source maps for component style(that's created in new `style` tags)

PR Close 
2018-01-24 12:35:30 -08:00
Patrick Shields
925e654a29 fix(router): don't use ParamsInheritanceStrategy in declarations ()
ParamsInheritanceStrategy is internal, so any references to it from the
published .d.ts files will fail.

Fixes .

PR Close 
2018-01-23 21:34:37 -08:00
Miško Hevery
1e9cd95f5c test(ivy): content projection canonical example ()
PR Close 
2018-01-23 16:42:07 -08:00
Victor Berchet
cb5090cdc8 fix(compiler): fix ICU select messages to use male/female/other ()
related to 

PR Close 
2018-01-23 16:32:23 -08:00
ghetolay
4b70bcd200 test(forms): Better description and coverage for ()
fixes 

PR Close 
2018-01-23 16:31:45 -08:00
Chuck Jazdzewski
8baff1858b fix(ivy): add names to function expressions ()
PR Close 
2018-01-23 13:33:48 -08:00
Chuck Jazdzewski
dd8679037e fix(compiler-cli): do not fold errors past calls in the collector ()
Folding errors passed calls prevented the static reflector from
begin able to ignore errors in annotations it doesn't know as
the call to the unknown annotation was elided from the metadata.

Fixes: 

PR Close 
2018-01-23 13:33:25 -08:00
Chuck Jazdzewski
c65634215b feat(ivy): update specification to include template variables ()
PR Close 
2018-01-23 13:32:57 -08:00
Alex Rickabaugh
0ad02de47e feat(ivy): support for the ngForOf directive, with tests ()
Implement NgOnChangesFeature, ViewContainerRef, TemplateRef,
and the renderEmbeddedTemplate instruction, and wire together the
pieces required for the ngForOf directive to work.

PR Close 
2018-01-23 12:54:39 -08:00
Alex Rickabaugh
6472661ae8 refactor(ivy): avoid circular dep with query/di/instructions ()
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 
2018-01-23 12:54:39 -08:00
Alex Rickabaugh
c5586b7dfa fix(ivy): assertLessThan asserts the wrong thing ()
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 
2018-01-23 12:54:39 -08:00
Alex Eagle
95fbb7d675 build: Update to latest rules_typescript. ()
Fixes 

PR Close 
2018-01-22 15:32:59 -08:00
Victor Berchet
7d49443060 fix(common): A null value should remove the style on IE ()
fixes 

PR Close 
2018-01-22 12:54:49 -08:00
Chuck Jazdzewski
86d9612230 feat(ivy): update compiler to specification ()
PR Close 
2018-01-20 09:28:44 -08:00
Marc Laval
a0dc0a2f46 test(ivy): add render3 integration tests ()
PR Close 
2018-01-19 15:23:52 -08:00
Kara Erickson
e18f1de003 refactor(ivy): remove unnecessary D instruction ()
PR Close 
2018-01-19 15:23:17 -08:00
Chuck Jazdzewski
21e37e47c6 fix(ivy): update the compiler specification ()
Also make a minor fix for directive definitions

PR Close 
2018-01-19 13:23:54 -08:00