angular2-json-schema-form
angular2-json-schema-form copied to clipboard
Calling function in component from event handler fails.
Issue type
I'm submitting a (check one): [x] Bug report [ ] Feature request [ ] Regression (something that used to work, but stopped working in a newer version) [x] Support request [ ] Documentation issue or request
This works:
{ "type": "button", "title": "Click me", "onClick": function (evt) { evt.preventDefault(); alert('Thank you!'); } }
but I don't know how to call a function in my component.
There is an example in the kitchen sink (a button that calls sayNo() ) which also doesn't seem to do anything. So it appears to be a bug.