I'm trying to delete the element in Angular JS. When the user click the action button the card view suppose to be deleted but it's not deleted in HTML View but in backend nodejs & DB data has been deleted. When i refresh the element has been deleted all i want is when i click the button the from HTML the card view has to be deleted and also in DB? Pls help me to fix this problem?I'm trying to delete the element in Angular JS.