Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling a function does not work #2

Open
hphilipp opened this issue Feb 5, 2018 · 0 comments
Open

Calling a function does not work #2

hphilipp opened this issue Feb 5, 2018 · 0 comments

Comments

@hphilipp
Copy link

hphilipp commented Feb 5, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant