fix: support *directive on <template> (#9691)

fixes #7315
This commit is contained in:
Miško Hevery
2016-06-28 21:53:41 -07:00
committed by GitHub
parent 3784696b9e
commit 3fec27961e
2 changed files with 4 additions and 14 deletions

View File

@ -321,12 +321,6 @@ class TemplateParseVisitor implements HtmlAstVisitor {
var hasTemplateBinding = this._parseInlineTemplateBinding(
attr, templateMatchableAttrs, templateElementOrDirectiveProps, templateElementVars);
if (hasTemplateBinding && isTemplateElement) {
this._reportError(
`Can't have template bindings on a <template> element but the '${attr.name}' attribute was used`,
attr.sourceSpan);
}
if (hasTemplateBinding && hasInlineTemplates) {
this._reportError(
`Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *`,