I have a object in a script in the index.html in an angular project. I need to access that object from other .ts files.
<script>
var jsonData ={
"company": 10,
"wareHouse": 'GLV',
"MMVNMS": 'CA',
"OFFSITE": 'OFFSITE',
"mualun": 'CAE',
}
</script>
from a .ts file i want to read this jsonData object like
var data = jsonData;
Any help is appreciated.