I'm storing token and passing it to angular from index.cshtml as
<app
data-serverData='@ViewData["token"]'>Loading..</app>
very thing working fine but in webtools
It appears very clearly.So I want to remove that by writing in a script
<script id=tempScript>
token = @ViewData["token"]
</script>
or
<div id=tempClass>
<input type="hidden" token="@ViewData["token"]">
</div>
Now,In any angular component after collecting the token I want to remove the script or Div like in Jquery $(#tempScript).remove();
or same for Div. How can I approach this in typescript.