I'm making a todo app using MEAN stack. Till now I have completed with displaying the todo list and deletion of todo on click of checkbox. Now I'm trying to enhance my code by doing logical deletion. I'm using a flag in database which will toggle on the click of checkbox.
But the problem I'm facing is, the checkbox is not remaining checked. Like I click on the checkbox, then a strikethrough appears. Between this, the event goes to the database change the flag and comes back. But till that time, the checked thing is gone.
Please help me out. I'm fixed with this issue and unable to proceed since I have to add functionality unchecking it again.
Aucun commentaire:
Enregistrer un commentaire