I'd like to embed this code into my angular 7 application.
<link rel="stylesheet" type="text/css" href="https://cdn2.hubspot.net/hubfs/1716276/embeddable_assessments/disc/disc_assessment_v1.1.0.css" />
<script src="https://cdn2.hubspot.net/hubfs/1716276/embeddable_assessments/disc/disc_assessment_v1.1.0.js"></script>
<div id="disc_assessment_root" data-api-token="token-here"></div>
<script>
window.crystalKnowsDISCResponse = function (response) {
console.log('Here is the personality JSON response:', response)
}
</script>
So the link and the script should stay in index.html, but i must use <div id="disc_assessment_root" data-api-token="token-here"></div>
in my custom component, and
window.crystalKnowsDISCResponse = function (response) {
console.log('Here is the personality JSON response:', response)
}
to get the results that the API returns.