fix(ElementBinderBuilder): properly bind to web component properties

Fixes #776

Closes #1024
This commit is contained in:
Pawel Kozlowski
2015-03-20 18:44:51 +01:00
parent 81f3f32217
commit 0fb9f3bd6c
5 changed files with 29 additions and 19 deletions
+14
View File
@@ -186,6 +186,20 @@ export function main() {
});
}));
it('should ignore bindings to unknown properties', inject([AsyncTestCompleter], (async) => {
tplResolver.setTemplate(MyComp, new Template({inline: '<div unknown="{{ctxProp}}"></div>'}));
compiler.compile(MyComp).then((pv) => {
createView(pv);
ctx.ctxProp = 'Some value';
cd.detectChanges();
expect(DOM.hasProperty(view.nodes[0], 'unknown')).toBeFalsy();
async.done();
});
}));
it('should consume directive watch expression change.', inject([AsyncTestCompleter], (async) => {
var tpl =
'<div>' +