refactor(ProtoViewBuilder): improve error message for dangling bindings

Closes #3066
This commit is contained in:
Pawel Kozlowski
2015-07-15 14:52:41 +02:00
committed by Tobias Bosch
parent fc8f4688c7
commit b785503543
3 changed files with 4 additions and 4 deletions

View File

@ -322,7 +322,7 @@ function buildElementPropertyBindings(protoElement: /*element*/ any, isNgCompone
propertyBindings.push(propertyBinding);
} else if (!SetWrapper.has(directiveTempaltePropertyNames, propertyNameInTemplate)) {
throw new BaseException(
`Can't bind to '${propertyNameInTemplate}' since it isn't a know property of the '${DOM.tagName(protoElement).toLowerCase()}' element and there are no matching directives with a corresponding property`);
`Can't bind to '${propertyNameInTemplate}' since it isn't a known property of the '<${DOM.tagName(protoElement).toLowerCase()}>' element and there are no matching directives with a corresponding property`);
}
});
return propertyBindings;