A
A
Alex102142020-11-29 13:38:08
Angular
Alex10214, 2020-11-29 13:38:08

Why is this error thrown from core js?

There is such an error:
5fc379f8b25fe225457729.png

In general, there is a directory, there are three posts in it, when you click on the post, it opens, I transfer the object to it. In the console, you can see that I received the object and displayed the title of the object. As you can see, it is displayed, but at the same time, core js swears. The first time I encountered this error. Can someone tell me how to get rid of it? And why did she show up?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shvets, 2020-11-29
@Xuxicheta

Most likely in the template you are accessing the name field of an object that has not yet loaded.
Hide the entire block under *ngIfor put questions in the template, such as{{obj?.name}}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question