I have an input field and a button. It must be disable at start. When the input no blank is, the button is enable.
I use a ngModel to take the value of the input and a function (change) to start a function each time the input is changed.
Now I do a little if in the change function.
if(input !== ''){
//enable the button
}else{
//disable the button
}
Have you any idea how to achieve that?
Thanks