I wonder how can I achieve my goal in a clean way. Here's the problem: In my angular view I want to have the following code block to explain to my customers how to set up an embeded plugin
In angular(5.X) view
<code>
<script src="https://plugin.example.io"></script>
<script>
const myBot = new Bot({{ uid }}) // Here I want to inject the `uid` var coming from my angular controller
</script>
</code>
Of course I don't want the code to be interpreted but just displayed as a code block should do.
Problem is that angular sanitizes view before rendering it to avoid security issues. However I thought of sanitizer.bypassSecurityTrustHtml() but problem is how to inject my uid and remains the code clean ?
Is there any known directive that can make the trick ?
Thank you.
<you can use the html entity<:<script src=""></script>