I'm new to Angular, could anyone help me convert this code in javascript to 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>