Hello. Apologies if this is a basic question, but what’s the best way to get the content of the data in a form when using Angular?
[original thread by eebsie]
Hello. Apologies if this is a basic question, but what’s the best way to get the content of the data in a form when using Angular?
[original thread by eebsie]
[eebsie]
I have found this way of doing it, but is this the best way?:
constructor(private jsonFormsService: JsonFormsAngularService) {}
ngOnInit() {
this.jsonFormsService.$state.subscribe((data) => {
console.log(data);
});
}
Hi @eebsie ,
you can do it like this:
return this.jsonFormsService.getState().jsonforms.core.data;