I am using external library that returns html and scripts from the server. Sample response looks like:
<div>
1. Some text
</div>
<script>
function transform()
{
//some js code
}
function calculate()
{
//some js code
}
I am trying to insert this code into angular view. I have tried through DomSanitizer and ElementRef but does not work. Returned code from server is quiete complicated, has many js functions.