I am working with JSONForms in an Angular application, and I need to listen to value changes of a specific field by its path (e.g., #/properties/name). I am looking for a solution in jsonforms in angular.
Thank you.
(I am aware it is not scope of this question) errors emitted on when I change form value. on init form it is not validating form. Here is what I do.
You’re right, we are only emitting whenever there is a change, see here.
This is an oversight. Feel free to push a contribution to fix the issue. We should not only setup the subscription but also emit the data (in case defaults were applied) and errors initially.
As a hacky workaround you could access the JSON Forms component via @ViewChild and then access the internal state for example via this.jsonFormsComponent.jsonformsService._state.core.errors