Using the following Playground example: https://play.nativescript.org/?id=K2B4VA
I have a custom component
components/comp to which I pass a “parameter”
myFunc from the main layout.
comp.js, in the
loaded function inside a timeout I call it and it works.
Now, my questions are:
- Why does my function call works only if I defer the call using a
- Why if I uncomment the code in
comp.jsthat sets the
.contextBindingit changes the value of
args.object.myFunc, and my code will stop working as now
myFunctis an object not a function anymore ?