Hi I have a general question is it okay to write JavaScript code in angular (in my case for dom manipulation)
Here is an example of what i would use.
Thanks in Advance.
document.querySelectorAll('div.links a').forEach(function(item) {
const tag = window.location.href.indexOf('content') > -1 ? 'hello' : 'hai';
const href = `${item.getAttribute('href')}${brand}`;
item.setAttribute('href', href);
});