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

Possibility of using this with Angular 8 ? #169

Open
timetraveller432 opened this issue Aug 12, 2019 · 0 comments
Open

Possibility of using this with Angular 8 ? #169

timetraveller432 opened this issue Aug 12, 2019 · 0 comments

Comments

@timetraveller432
Copy link

I have been trying to integrate this with my Angular 8 App.
Everything works as expected except for the case when I try to insert HTML with a custom component into the rows parameter.

As an example
var data = ['<app-custom-component>…</app-custom-component>', '<app-custom-component>…</app-custom-component>', …];
var clusterize = new Clusterize({ rows: data, scrollId: 'scrollArea', contentId: 'contentArea' });

In this case,

  • The final rendered HTML doesn't translate to the HTML template of the custom component and rather displays the exact same HTML, word by word as loaded into the rows parameter.
  • The fate of the DOM events is similar too. The click or hover events are not directly interpreted.

I understand that this might be because of the way Angular compiles Apps but is there still any way of using custom components, instead of directly using the custom component template's HTML in the rows value?

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