Attempting to update the script type application/ld+json src in Angular Universal after user actions.
const newScript:HTMLScriptElement = document.createElement('script');
newScript.setAttribute('type', 'application/ld+json');
newScript.setAttribute('src', 'assets/data/bangalore-to-hyderabad-schema.js');
this.dom.body.appendChild(newScript);
However, the changes are reflected in the elements body section and not in the view page source under the body section. Can anyone provide assistance? Thanks in advance.