fix(compiler): add ability to parse : in * directives
- Add ability to parse bindings properly when `:` is present when using a directive with the `*` prefix Closes #6038
This commit is contained in:
@@ -414,7 +414,9 @@ class TemplateParseVisitor implements HtmlAstVisitor {
|
||||
templateBindingsSource = attr.value;
|
||||
} else if (attr.name.startsWith(TEMPLATE_ATTR_PREFIX)) {
|
||||
var key = attr.name.substring(TEMPLATE_ATTR_PREFIX.length); // remove the star
|
||||
templateBindingsSource = (attr.value.length == 0) ? key : key + ' ' + attr.value;
|
||||
templateBindingsSource = (attr.value.length == 0) ?
|
||||
key :
|
||||
key + ' ' + StringWrapper.replaceAll(attr.value, /:/g, ' ');
|
||||
}
|
||||
if (isPresent(templateBindingsSource)) {
|
||||
var bindings = this._parseTemplateBindings(templateBindingsSource, attr.sourceSpan);
|
||||
|
||||
Reference in New Issue
Block a user