diff --git a/modules/angular2/src/render/dom/view/proto_view_builder.ts b/modules/angular2/src/render/dom/view/proto_view_builder.ts index d8dbcda48fab..2bdd45d530f6 100644 --- a/modules/angular2/src/render/dom/view/proto_view_builder.ts +++ b/modules/angular2/src/render/dom/view/proto_view_builder.ts @@ -354,7 +354,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; diff --git a/modules/angular2/test/core/compiler/integration_spec.ts b/modules/angular2/test/core/compiler/integration_spec.ts index 52a8b599b835..38d3bc7bcfbe 100644 --- a/modules/angular2/test/core/compiler/integration_spec.ts +++ b/modules/angular2/test/core/compiler/integration_spec.ts @@ -1282,7 +1282,7 @@ export function main() { PromiseWrapper.catchError(tcb.createAsync(MyComp), (e) => { expect(e.message).toEqual( - `Can't bind to 'unknown' since it isn't a know property of the 'div' element and there are no matching directives with a corresponding property`); + `Can't bind to 'unknown' since it isn't a known property of the '
' element and there are no matching directives with a corresponding property`); async.done(); return null; }); diff --git a/modules/angular2/test/render/dom/view/proto_view_builder_spec.ts b/modules/angular2/test/render/dom/view/proto_view_builder_spec.ts index ef8d00f8540d..9a6727b779b6 100644 --- a/modules/angular2/test/render/dom/view/proto_view_builder_spec.ts +++ b/modules/angular2/test/render/dom/view/proto_view_builder_spec.ts @@ -29,7 +29,7 @@ export function main() { builder.bindElement(el('
')).bindProperty('unknownProperty', emptyExpr()); expect(() => builder.build()) .toThrowError( - `Can't bind to 'unknownProperty' since it isn't a know property of the 'div' element and there are no matching directives with a corresponding property`); + `Can't bind to 'unknownProperty' since it isn't a known property of the '
' element and there are no matching directives with a corresponding property`); }); it('should allow unknown properties if a directive uses it', () => { @@ -51,7 +51,7 @@ export function main() { binder.setComponentId('someComponent'); expect(() => builder.build()) .toThrowError( - `Can't bind to 'unknownProperty' since it isn't a know property of the 'some-custom' element and there are no matching directives with a corresponding property`); + `Can't bind to 'unknownProperty' since it isn't a known property of the '' element and there are no matching directives with a corresponding property`); }); });