fix(compiler): generate core-compliant hostBindings property (#24087)

This makes `hostBindings` code, generated by compiler and used in core package, identical.

Fix #24013

PR Close #24087
This commit is contained in:
alexzuza
2018-05-24 01:07:09 +04:00
committed by Matias Niemelä
parent 186118e684
commit 01b5acd7cf
3 changed files with 6 additions and 5 deletions

View File

@ -291,7 +291,7 @@ describe('compiler compliance', () => {
factory: function HostBindingDir_Factory() { return new HostBindingDir(); },
hostBindings: function HostBindingDir_HostBindings(
dirIndex: $number$, elIndex: $number$) {
$r3$.ɵp(elIndex, 'id', $r3$.ɵb($r3$ld(dirIndex).dirId));
$r3$.ɵp(elIndex, 'id', $r3$.ɵb($r3$.ɵd(dirIndex).dirId));
}
});
`;
@ -823,7 +823,7 @@ describe('compiler compliance', () => {
hostBindings: function ContentQueryComponent_HostBindings(
dirIndex: $number$, elIndex: $number$) {
var $tmp$: $any$;
($r3$.ɵqR(($tmp$ = $r3$ld(dirIndex)[1])) && ($r3$ld(dirIndex)[0].someDir = $tmp$.first));
($r3$.ɵqR(($tmp$ = $r3$.ɵd(dirIndex)[1])) && ($r3$.ɵd(dirIndex)[0].someDir = $tmp$.first));
},
template: function ContentQueryComponent_Template(
rf: $RenderFlags$, ctx: $ContentQueryComponent$) {