fix(ivy): correctly bind to component context (#23168)

When compiling templates the compiler would often bind to
closest context rather than the component context.

The only time one should be binding to the cont component is
in explicit cases where the inner template declares local variable.

PR Close #23168
This commit is contained in:
Miško Hevery
2018-04-05 11:38:06 -07:00
committed by Igor Minar
parent 4f7fac0e03
commit 3fb4e190a8
7 changed files with 175 additions and 80 deletions

View File

@ -1153,6 +1153,7 @@ describe('compiler compliance', () => {
$r3$.ɵT(1);
$r3$.ɵe();
}
const $item$ = ctx0.$implicit;
const $info$ = ctx1.$implicit;
$r3$.ɵt(1, $r3$.ɵi2(' ', $item$.name, ': ', $info$.description, ' '));
}