Skip to content

Calling a function does not work #2

@hphilipp

Description

@hphilipp

Hey,

I am using your wrapper in my project. Everything works fine but I can't call a function like you do in your example. This is my code:

<div *ngIf="editorShown">
  <json-editor [(ngModel)]="signatureContent" 
    jsonModal #editorModal="json-modal" 
    [config]="editorConfig" 
    (change)="onEditorChange()">
  </json-editor>
</div>
<button (click)="editorModal.get()" class="btn btn-primary" type="button">get</button>

It throws the following error:
TypeError: t.component.editorModal is undefined

I want to use the get()-function because I have a json-schema to validate the content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions