fix(ivy): update the compiler specification (#21656)

Also make a minor fix for directive definitions

PR Close #21656
This commit is contained in:
Chuck Jazdzewski
2018-01-18 16:27:43 -08:00
committed by Miško Hevery
parent 8e8924ac7c
commit 21e37e47c6
2 changed files with 9 additions and 4 deletions

View File

@ -95,6 +95,7 @@ describe('compiler specification', () => {
r3.T(3, '!');
}
ChildComponent.ngComponentDef.r(1, 0);
SomeDirective.ngDirectiveDef.r(2, 0);
}
});
// /NORMATIVE
@ -112,7 +113,7 @@ describe('compiler specification', () => {
xit('should support structural directives', () => {
const log: string[] = [];
@Directive({
selector: 'if',
selector: '[if]',
})
class IfDirective {
constructor(template: TemplateRef<any>) { log.push('ifDirective'); }
@ -180,7 +181,8 @@ describe('compiler specification', () => {
r3.e();
r3.T(2);
}
r3.t(2, r3.b1('Hello ', r3.m<any>(1).value, '!'));
const l1_user = r3.m<any>(1);
r3.t(2, r3.b1('Hello ', l1_user.value, '!'));
}
});
// NORMATIVE