From the course: Building Angular and ASP.NET Web API Apps

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Adding a confirmation step

Adding a confirmation step

From the course: Building Angular and ASP.NET Web API Apps

Start my 1-month free trial

Adding a confirmation step

- [Instructor] Now that we created our end point, let us create our angular component, which we are going to use when we want to delete an entry. So for that let us go to our project. But before we create the component itself, let us create a Delete button in our main table. So for that, let us go to the entries.component.html file. In the entries.component.html file, scroll down to the Actions container. So in here we have created already the Edit button. Now let us create the Delete button. So, for that, we write in here button, and then as a name we define for this button the Delete text. Then next let us define some properties for this button. So let us start with the first directive which is going to be the routerLink which means that once we've clicked this button we are going to be redirected to a certain route. And the route that we are going to redirected to is going to be the /delete-entry, but it is going to have a bar meter which is going to be the element.Id. And we get…

Contents