Displaying data and handling events/Template variables


Parameter email implicitly has an any type

Hi @Ranjan,

First, lets take a closer look at the ERROR: Parameter ‘email’ implicitly has an ‘any’ type. What does this mean? It’s important to know what the word “implicitly” means. “Implicitly” means implies or “gives a clue or hint to…”. So, the error is telling you to clearly state (not just imply) what kind of parameter the function (onKeyUp) expects.

This fix is to change line 13-15 to this:

onKeyUp(email: any) {
console.log(email);
}
1 Like