fix(TemplateParser): add support for data-template attribute
fixes #9904
This commit is contained in:
@ -949,6 +949,12 @@ Reference "#a" is defined several times ("<div #a></div><div [ERROR ->]#a></div>
|
||||
]))).toEqual([[EmbeddedTemplateAst], [ElementAst, 'div']]);
|
||||
});
|
||||
|
||||
it('should wrap the element with data-template attribute into an EmbeddedTemplateAST ',
|
||||
() => {
|
||||
expect(humanizeTplAst(parse('<div data-template>', [
|
||||
]))).toEqual([[EmbeddedTemplateAst], [ElementAst, 'div']]);
|
||||
});
|
||||
|
||||
it('should parse bound properties', () => {
|
||||
expect(humanizeTplAst(parse('<div template="ngIf test">', [ngIf]))).toEqual([
|
||||
[EmbeddedTemplateAst], [DirectiveAst, ngIf],
|
||||
|
Reference in New Issue
Block a user