3
I’m kind of new at Angular, could someone help me convert this code into Javascript for angular.
window.onload = function(){
var campo1 = document.getElementById("campo1").value;
if(campo1 == 0.00){
document.getElementById("icon").style.display = "none";
} else {
document.getElementById("icon").style.display = "block";
}
}
<input type="checkbox" name="check" id="checkbox" />
<input type="text" id="campo1" value="0.00" />
<div id="icon">
<img src="lupa.png" />
</div>
Controller Research. And on the Angular homepage, you can already solve this question.
– flpms