Angular: Binding error when I return to a component


#1

Hi guys, I am having an Angular error when I try to come back to a component when I have some two-way-binding TextFields and I try to populate from an object.

For that I am using the ngAfterViewInit method and this is the error in the console:

CONSOLE ERROR [native code]: ERROR TypeError: undefined is not an object (evaluating 'def.bindings[def.bindingIndex].name')
CONSOLE ERROR [native code]: ERROR CONTEXT [object Object]

Any suggestion?

Thanks!


#2

Hey @relez,

Any chance you can get a working example of this running in NativeScript Playground? It’ll make it a lot easier for us to take a look and help you out here.

Thanks,
TJ