N
N
neomichi2016-05-20 08:06:52
Angular
neomichi, 2016-05-20 08:06:52

How to handle a 404 error so that it is not visible in the browser?

I would like to fix this in js, you can make the api give an empty result , but this is not correct.
In Figure 0, the code from the factory
15323837fb5542a1884bdd60b54d1871.png
In Figure 1, the code that handles the error
Figure
c8aa06364d7840e98f1ee06eb0fb3403.png
1 Figure 2 shows that the processing works, but the error is still displayed ...
Figure 2
c31b87ccb1b5435d9666d1ee241a59f3.png
How to prevent it from being displayed?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question