I use very often in my code (and I don't know if I'm right to use it):
<div>post.title</div>
<div>I'm loading the posts...</div>
and until today everything OK.
But now I don't know if the model.posts is empty or not.
How to show an error instead of loading forever an empty array?
Aucun commentaire:
Enregistrer un commentaire