Closed ghost closed 7 years ago
"If its an expression it will be evaluated in the parent scope of the sf-schema directive"
You need to add the function to the scope of your controller so ASF has access to it $scope.TestHandler = TestHandler;
would suffice :)
Please re-open if you do not feel the question has been answered sufficiently.
See the onChange-Events: https://plnkr.co/edit/b8PwXmyOCwrcwhZ47DZQ
I defined the onChange-Event in different ways. It only works, when a anonymous function is called.
See docu: https://github.com/json-schema-form/angular-schema-form/blob/master/docs/index.md
docu says not only anonym functions.