Skip to content

Commit

Permalink
fixup! fix(ivy): validate props and attrs with "on" prefix at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewKushnir committed Jan 12, 2019
1 parent 7f9440b commit 8535a52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/compiler/src/render3/r3_template_transform.ts
Expand Up @@ -240,6 +240,9 @@ class HtmlAstToIvyAst implements html.Visitor {
literal.push(new t.TextAttribute(
prop.name, prop.expression.source || '', prop.sourceSpan, undefined, i18n));
} else {
// we skip validation here, since we do this check at runtime due to the fact that we need
// to make sure a given prop is not an input of some Directive (thus should not be a subject
// of this check) and Directive matching happens at runtime
const bep = this.bindingParser.createBoundElementProperty(
elementName, prop, /* skipValidation */ true);
bound.push(t.BoundAttribute.fromBoundElementProperty(bep, i18n));
Expand Down

0 comments on commit 8535a52

Please sign in to comment.