DEV Community

Vinoth kumar Ramasamy
Vinoth kumar Ramasamy

Posted on

Nonce for Custom Elements

Im not sure this is the right forum. But, I need a help deperately on this.

I have written angular custom element like below

customElements.define('my-comp', createCustomElement(BasicComponent, config));

and will provide as js file after build using npm run build-elements so that the other client applications can add this in the script tag and use this my-comp.

So, Can someone please advise, how can we set the nonce value especially for the custom elements so that the angular generated dynamic styles are applied with nonce attribute?

Top comments (0)