fix(Compiler): fix template binding parsing (*directive="-...")

fixes #13800
This commit is contained in:
Victor Berchet
2017-01-05 17:25:41 -08:00
committed by Matias Niemelä
parent 1c82b58185
commit 7dc12b93fe
2 changed files with 18 additions and 5 deletions

View File

@ -276,7 +276,7 @@ class TemplateParseVisitor implements html.Visitor {
templateBindingsSource = attr.value;
} else if (normalizedName.startsWith(TEMPLATE_ATTR_PREFIX)) {
templateBindingsSource = attr.value;
prefixToken = normalizedName.substring(TEMPLATE_ATTR_PREFIX.length);
prefixToken = normalizedName.substring(TEMPLATE_ATTR_PREFIX.length) + ':';
}
const hasTemplateBinding = isPresent(templateBindingsSource);