my question is this, I have 2 functions in JavaScript
function checked(id) {
document.getElementById(id).checked = true;}
function unChecked(id) {
document.getElementById(id).checked = false;}
I use these for not being able to check a checkbox without the previous one being checked, in angle 4 I do not know how I can use those functions inside the components, now I have to migrate to angular 5 and when wanting to use those functions within my component gives me error, how can I call functions of an external js file inside my component?
or how could you replicate those functions in a component?
Greetings and thanks for your time.