I am new in Ionic, I just want to use JS file in one page. So I copy/paste the JS code in to the end of the .ts file, but I have different Error, It is like the .ts charge after the HTML:
Runtime Error Cannot read property 'appendChild' of null
conteneur.appendChild(image);
Runtime Error Cannot set property 'innerHTML' of null
document.getElementById('composante').innerHTML = "test";
Property 'value' does not exist on type 'HTMLElement'.
document.getElementById(tmp).value=ReponsePossibleAffichage[i];
Is there a solution to use only JS ? Or solve my problem
Thanks