parent
579deeb9c5
commit
642c1db9ef
|
@ -54,6 +54,9 @@ export function bindRenderInputs(
|
|||
view.detectChangesRenderPropertiesMethod.resetDebugInfo(compileElement.nodeIndex, boundProp);
|
||||
const evalResult = convertPropertyBinding(
|
||||
view, view, compileElement.view.componentContext, boundProp.value, bindingField.bindingId);
|
||||
if (!evalResult) {
|
||||
return;
|
||||
}
|
||||
var checkBindingStmts: o.Statement[] = [];
|
||||
var compileMethod = view.detectChangesRenderPropertiesMethod;
|
||||
switch (boundProp.type) {
|
||||
|
|
|
@ -427,6 +427,14 @@ export function main() {
|
|||
}));
|
||||
|
||||
|
||||
it('should ignore empty bindings', fakeAsync(() => {
|
||||
var ctx = _bindSimpleProp('[someProp]', TestData);
|
||||
ctx.componentInstance.a = 'value';
|
||||
ctx.detectChanges(false);
|
||||
|
||||
expect(renderLog.log).toEqual([]);
|
||||
}));
|
||||
|
||||
it('should support interpolation', fakeAsync(() => {
|
||||
var ctx = _bindSimpleProp('someProp="B{{a}}A"', TestData);
|
||||
ctx.componentInstance.a = 'value';
|
||||
|
|
Loading…
Reference in New Issue