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

Can't use twice in same component #103

Open
vikrambarnwal opened this issue Mar 13, 2023 · 0 comments
Open

Can't use twice in same component #103

vikrambarnwal opened this issue Mar 13, 2023 · 0 comments

Comments

@vikrambarnwal
Copy link

I want to use two email editor in same component.

<div class="container">
  <button (click)="exportHtml()">Export</button>
  <email-editor #editor1 (loaded)="editorLoaded($event)"></email-editor>
</div>

<div class="container">
  <button (click)="exportHtml()">Export</button>
  <email-editor #editor2 (loaded)="editorLoaded($event)"></email-editor>
</div>

@ViewChild(EmailEditorComponent)
private emailEditor: EmailEditorComponent;

If i am trying viewchildren instead of viewchild ,issue as editor is not defined is coming in console.

can someone guide or help?

Thanks in advance.

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