Revert "fix(compiler): add ability to parse : in * directives"
This reverts commit 53628e19ac
.
as it breaks pipe arguments in `*ngFor`, ...
See #9062
Closes #9063
This commit is contained in:
@ -508,7 +508,7 @@ export function main() {
|
||||
it('should support optional directive properties', () => {
|
||||
var dirA = CompileDirectiveMetadata.create({
|
||||
selector: 'div',
|
||||
type: new CompileTypeMetadata({moduleUrl: someModuleUrl, name: 'Dir'}),
|
||||
type: new CompileTypeMetadata({moduleUrl: someModuleUrl, name: 'DirA'}),
|
||||
inputs: ['a']
|
||||
});
|
||||
expect(humanizeTplAst(parse('<div></div>', [dirA])))
|
||||
@ -1067,18 +1067,6 @@ Reference "#a" is defined several times ("<div #a></div><div [ERROR ->]#a></div>
|
||||
[ElementAst, 'div']
|
||||
]);
|
||||
});
|
||||
|
||||
it('should work with *... and :', () => {
|
||||
var dirA = CompileDirectiveMetadata.create(
|
||||
{selector: '[a]', type: new CompileTypeMetadata({name: 'DirA'}), inputs: ['a', 'b']});
|
||||
expect(humanizeTplAst(parse('<div *a="b: foo">', [dirA])))
|
||||
.toEqual([
|
||||
[EmbeddedTemplateAst],
|
||||
[DirectiveAst, dirA],
|
||||
[BoundDirectivePropertyAst, 'a', 'b'],
|
||||
[ElementAst, 'div']
|
||||
]);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user