Closed EmmanuelAmodu closed 5 years ago
So I fixed this I think by adding schemas: [ CUSTOM_ELEMENTS_SCHEMA ]
in my AppModule, now I get this error
ERROR in C:/Users/Tivas/Desktop/ussdFrontEnd/node_modules/angular4-jsoneditor/jsoneditor/jsoneditor.component.ts (20,19): Cannot use 'new' with an expression whose type lacks a call or construct signature.
in my console
Hi, Seeing your first comments, looks like below code is missing in your xx.component.ts file import { JsonEditorComponent, JsonEditorOptions } from './ng4-jsoneditor';
export class xxComponent { public editorOptions: JsonEditorOptions;
@ViewChild(JsonEditorComponent) editor: JsonEditorComponent;
constructor() { this.editorOptions = new JsonEditorOptions() }
}
Please share your code so I can take a look in details. I have added demo project as well with git code
First thanks for taking the time to wrote this package, I am currently having issues with it as it returns it gives me a parse error on my view.