angular-cn/packages/compiler-cli/test/ngtsc
Kara Erickson 452668b581 fix(ivy): host bindings should work if input has same name (#27589)
Previously in Ivy, host bindings did not work if they shared a public name
with an Input because they used the `elementProperty` instruction as is.
This instruction was originally built for inside component templates, so it
would either set a directive input OR a native property. This is the
correct behavior for inside a template, but for host bindings, we always
want the native properties to be set regardless of the presence of an Input.

This change adds an extra argument to `elementProperty` so we can tell it to
ignore directive inputs and only set native properties (if it is in the
context of a host binding).

PR Close #27589
2018-12-11 11:27:08 -08:00
..
fake_core fix(ivy): deduplicate directives in component scopes (#27462) 2018-12-05 14:36:24 -08:00
BUILD.bazel test(ivy): mark failing test targets with fixme-ivy-jit and fixme-ivy-local tags (#26471) 2018-10-23 08:57:42 -07:00
env.ts fix(ivy): add missing directoryExists() method to shim CompilerHost (#27470) 2018-12-05 10:46:51 -08:00
ngtsc_spec.ts fix(ivy): host bindings should work if input has same name (#27589) 2018-12-11 11:27:08 -08:00
template_typecheck_spec.ts test(ivy): implement tests for template type-checking (#26203) 2018-10-04 10:11:17 -07:00