Saturday, December 4, 2021

how to use splice in angular

 We can use Splice in angular Using splice function.

After you have successfully deleted your item from the server, you can delete it from the array using

splice(...)

like this:

const index = this.checkinTemp.indexOf(item);
this.checkinTemp.splice(index, 1);

No comments:

Post a Comment

How to build an Express and Node.js app with Typescript

  In this tutorial, you will learn how to set up a Node.js and Express project with Typescript and live auto-reloading. Note that this metho...