Angular 6 - ERROR TypeError: Cannot read property 'value' of undefined
Just use
<div>{{ joke?.value }}</div>
Your joke
object doesn't have the value until the API response arrives. Thus use ?
to apply the null check until the response arrives.
You can use *ngIf until getting resopnse
below is the sample,
<div *ngIf="joke">{{ joke.value }}</div>