I\'m new to Angular and Typescript and cannot get to the bottom of this console error: \"ERROR TypeError: Cannot read property \'value\' of undefined\"
I\'m calling
Just use
{{ joke?.value }}
Your joke object doesn't have the value until the API response arrives. Thus use ? to apply the null check until the response arrives.
joke
?