Hype and Angular2



I have a gauge that it’s done in HYPE. Now i need to use it in the angular2 project that i have.
I’m quite new to Angular but i have tried to add the script in script tags in HTML. The only place that i know that i can have anything drawn from the gauge is when i use the script in the index.html for angular. but i need it in a component.
All other places then the index.html just don’t draw out the gauge. Does anyone know how this can be achieved?

Grateful for all information.

(Jonathan Deutsch) #2

I think the best route to include Hype animations in an angular2 page is via an iframe. My understanding is that Angular manipulates the DOM in ways that the Hype runtime doesn’t like, but being insulated in an iframe avoids this.