{"id":2526,"date":"2018-04-18T07:30:35","date_gmt":"2018-04-18T05:30:35","guid":{"rendered":"https:\/\/code-maze.com\/?p=2526"},"modified":"2025-01-26T08:50:36","modified_gmt":"2025-01-26T07:50:36","slug":"net-core-web-development-part15","status":"publish","type":"post","link":"https:\/\/code-maze.com\/net-core-web-development-part15\/","title":{"rendered":"Working with Delete Requests in Angular"},"content":{"rendered":"<p>To finalize the coding part of the series, we are going to implement the logic for deleting the entity. To do that, we are going to create a form to support this action and send the DELETE request to our server.<\/p>\n<p>For the complete navigation and all the basic instructions of the Angular series, check out: <a href=\"https:\/\/code-maze.com\/angular-series\/\" target=\"_blank\" rel=\"noopener noreferrer\">Introduction of the Angular series.<\/a><\/p>\n<p>So, let\u2019s dive right into it.<\/p>\n<h2><a id=\"folderStructure\"><\/a>Folder Structure and Routing<\/h2>\n<p>Let&#8217;s start by executing the <code>Angular CLI<\/code> command, which is going to create the required folder structure. Moreover, it is going to import the <code>OwnerDelete<\/code> component inside the <code>owner.module.ts<\/code> file:<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">ng g component owner\/owner-delete --skip-tests<\/code><\/p>\n<p>In addition, we have to modify the <code>owner-routing.module.ts<\/code> file to enable routing for this component:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\" data-enlighter-highlight=\"6\">const routes: Routes = [\r\n  { path: 'list', component: OwnerListComponent },\r\n  { path: 'details\/:id', component: OwnerDetailsComponent },\r\n  { path: 'create', component: OwnerCreateComponent },\r\n  { path: 'update\/:id', component: OwnerUpdateComponent },\r\n  { path: 'delete\/:id', component: OwnerDeleteComponent }\r\n];<\/pre>\n<p>Furthermore, let\u2019s modify the <code>owner-list.component.html<\/code> file:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"html\">&lt;td&gt;&lt;button type=\"button\" id=\"delete\" class=\"btn btn-danger\"\r\n  (click)=\"redirectToDeletePage(owner.id)\"&gt;Delete&lt;\/button&gt;&lt;\/td&gt;<\/pre>\n<p>And the <code>owner-list.component.ts<\/code> file to enable navigation to the delete page:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">public redirectToDeletePage = (id) =&gt; { \r\n  const deleteUrl: string = `\/owner\/delete\/${id}`; \r\n  this.router.navigate([deleteUrl]); \r\n}<\/pre>\n<h2><a id=\"htmlpart\"><\/a>Prepare the Page for Angular Delete Actions<\/h2>\n<p>To create the HTML part of the component, let\u2019s start with the wrapper code:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"html\">&lt;div class=\"container\"&gt;\r\n  &lt;div class=\"row\"&gt;\r\n    &lt;div class=\"col-md-10 card card-body bg-light mb-2 mt-2\"&gt;\r\n      \r\n    &lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;<\/pre>\n<p>Inside the <code>div<\/code> element with the <code>col-md-10<\/code> class, we are going to show all the details from the entity we want to delete:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"html\">&lt;div class=\"row\"&gt;\r\n  &lt;div class=\"col-md-3\"&gt;\r\n    &lt;label for=\"name\" class=\"control-label\"&gt;Owners name:&lt;\/label&gt;\r\n  &lt;\/div&gt;\r\n  &lt;div class=\"col-md-7\"&gt;\r\n    &lt;span name=\"name\"&gt;\r\n      {{owner?.name}}\r\n    &lt;\/span&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n\r\n&lt;div class=\"row\"&gt;\r\n  &lt;div class=\"col-md-3\"&gt;\r\n    &lt;label for=\"dateOfBirth\" class=\"control-label\"&gt;Date of birth:&lt;\/label&gt;\r\n  &lt;\/div&gt;\r\n  &lt;div class=\"col-md-7\"&gt;\r\n    &lt;span name=\"dateOfBirth\"&gt;\r\n      {{owner?.dateOfBirth | date: 'MM\/dd\/yyyy'}}\r\n    &lt;\/span&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n\r\n&lt;div class=\"row\"&gt;\r\n  &lt;div class=\"col-md-3\"&gt;\r\n    &lt;label for=\"address\" class=\"control-label\"&gt;Address:&lt;\/label&gt;\r\n  &lt;\/div&gt;\r\n  &lt;div class=\"col-md-7\"&gt;\r\n    &lt;span name=\"address\"&gt;\r\n      {{owner?.address}}\r\n    &lt;\/span&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;<\/pre>\n<p>Right below the last <code>div<\/code> element, let\u2019s add the buttons:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"html\">&lt;br&gt;\r\n&lt;div class=\"row\"&gt;\r\n  &lt;div class=\"offset-md-3 col-md-1\"&gt;\r\n    &lt;button type=\"submit\" class=\"btn btn-info\" (click)=\"deleteOwner()\"&gt;Delete&lt;\/button&gt;\r\n  &lt;\/div&gt;\r\n  &lt;div class=\"col-md-1\"&gt;\r\n    &lt;button type=\"button\" class=\"btn btn-danger\" (click)=\"redirectToOwnerList()\"&gt;Cancel&lt;\/button&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;<\/pre>\n<p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"xhtml\" data-enlighter-title=\"\">&lt;span style=&quot;font-family: Georgia, &#039;times new roman&#039;, &#039;bitstream charter&#039;, Times, serif;&quot;&gt;That&#039;s it.&lt;\/span&gt;<\/pre><\/p>\n<p>Our HTML part of the component is ready. All we have to do is to implement the business logic.<\/p>\n<h2><a id=\"componentpart\"><\/a>Handling Angular Delete Actions in the Component File<\/h2>\n<p>Let&#8217;s start with the import statements in the <code>owner-delete.copmonent.ts<\/code> file:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">import { HttpErrorResponse } from '@angular\/common\/http';\r\nimport { Router, ActivatedRoute } from '@angular\/router';\r\nimport { ErrorHandlerService } from '.\/..\/..\/shared\/services\/error-handler.service';\r\nimport { OwnerRepositoryService } from '.\/..\/..\/shared\/services\/owner-repository.service';\r\nimport { Owner } from '.\/..\/..\/_interfaces\/owner.model';\r\nimport { Component, OnInit } from '@angular\/core';\r\nimport { BsModalRef, ModalOptions, BsModalService } from 'ngx-bootstrap\/modal';\r\nimport { SuccessModalComponent } from 'src\/app\/shared\/modals\/success-modal\/success-modal.component';<\/pre>\n<p>Then, let&#8217;s create necessary properties and inject services in the constructor:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">export class OwnerDeleteComponent implements OnInit {\r\n  owner: Owner;\r\n  bsModalRef?: BsModalRef;\r\n\r\n  constructor(private repository: OwnerRepositoryService, private errorHandler: ErrorHandlerService,\r\n    private router: Router, private activeRoute: ActivatedRoute, private modal: BsModalService) { }\r\n}<\/pre>\n<p>Bellow the constructor, we are going to add the logic for fetching the owner and redirecting to the owner-list component:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">ngOnInit(): void {\r\n  this.getOwnerById();\r\n}\r\n\r\nprivate getOwnerById = () =&gt; {\r\n  const ownerId: string = this.activeRoute.snapshot.params['id'];\r\n  const apiUri: string = `api\/owner\/${ownerId}`;\r\n\r\n  this.repository.getOwner(apiUri)\r\n  .subscribe({\r\n    next: (own: Owner) =&gt; this.owner = own,\r\n    error: (err: HttpErrorResponse) =&gt; this.errorHandler.handleError(err)\r\n  })\r\n}\r\n\r\nredirectToOwnerList = () =&gt; {\r\n  this.router.navigate(['\/owner\/list']);\r\n}<\/pre>\n<p>Everything here is familiar from our previous posts.<\/p>\n<p>Finally, let\u2019s implement the delete logic right below the <code>redirectToOwnerList<\/code> function:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">deleteOwner = () =&gt; {\r\n  const deleteUri: string = `api\/owner\/${this.owner.id}`;\r\n\r\n  this.repository.deleteOwner(deleteUri)\r\n  .subscribe({\r\n    next: (_) =&gt; {\r\n      const config: ModalOptions = {\r\n        initialState: {\r\n          modalHeaderText: 'Success Message',\r\n          modalBodyText: `Owner deleted successfully`,\r\n          okButtonText: 'OK'\r\n        }\r\n      };\r\n\r\n      this.bsModalRef = this.modal.show(SuccessModalComponent, config);\r\n      this.bsModalRef.content.redirectOnOk.subscribe(_ =&gt; this.redirectToOwnerList());\r\n    },\r\n    error: (err: HttpErrorResponse) =&gt; this.errorHandler.handleError(err)\r\n  })\r\n}<\/pre>\n<p>That is it. We have finished our Angular part of this application. As a result, we have a fully functional application ready for deployment. Therefore, all we have left to do is to prepare Angular files for production and deploy the completed application.<\/p>\n<h2><a id=\"conclusion\"><\/a>Conclusion<\/h2>\n<p>By reading this post you have learned:<\/p>\n<ul>\n<li>How to create the HTML part of the delete action<\/li>\n<li>How to send the DELETE request to the server<\/li>\n<\/ul>\n<p>In<a href=\"https:\/\/code-maze.com\/net-core-web-development-part16\/\"> the next part of the series<\/a>, we are going to publish this complete application in the Windows environment by using the IIS.<\/p>\n<!-- Shortcode [subscribe] does not exist -->\n","protected":false},"excerpt":{"rendered":"<p>To finalize the coding part of the series, we are going to implement the logic for deleting the entity. To do that, we are going to create a form to support this action and send the DELETE request to our server. For the complete navigation and all the basic instructions of the Angular series, check [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":54327,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[168],"tags":[22,23,61,29,28,71,70,69,77,14,65,62,78,51,60,64,45],"class_list":["post-2526","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-angular","tag-net-core","tag-angular","tag-angular-components","tag-angular2","tag-angular4","tag-decorators","tag-directives","tag-eventemmiters","tag-form-validation","tag-http","tag-lazy-loading","tag-modules","tag-reactive-form-validation","tag-repository","tag-visual-studio-code","tag-web-developing","tag-web-development","et-has-post-format-content","et_post_format-et-post-format-standard"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Angular - Working with Angular Delete Actions - Code Maze<\/title>\n<meta name=\"description\" content=\"This post is focused on Angular Delete Actions by using the DELETE request. We are going to delete entities and to finish the coding part of the series.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/code-maze.com\/net-core-web-development-part15\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Angular - Working with Angular Delete Actions - Code Maze\" \/>\n<meta property=\"og:description\" content=\"This post is focused on Angular Delete Actions by using the DELETE request. We are going to delete entities and to finish the coding part of the series.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/code-maze.com\/net-core-web-development-part15\/\" \/>\n<meta property=\"og:site_name\" content=\"Code Maze\" \/>\n<meta property=\"article:published_time\" content=\"2018-04-18T05:30:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-26T07:50:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/code-maze.com\/wp-content\/uploads\/2018\/04\/angular-Working-with-Delete-Requests.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1100\" \/>\n\t<meta property=\"og:image:height\" content=\"620\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Marinko Spasojevi\u0107\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/CodeMazeBlog\" \/>\n<meta name=\"twitter:site\" content=\"@CodeMazeBlog\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Marinko Spasojevi\u0107\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":[\"Article\",\"BlogPosting\"],\"@id\":\"https:\/\/code-maze.com\/net-core-web-development-part15\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/code-maze.com\/net-core-web-development-part15\/\"},\"author\":{\"name\":\"Marinko Spasojevi\u0107\",\"@id\":\"https:\/\/code-maze.com\/#\/schema\/person\/d6fa06e66820968d19b39fb63cff2533\"},\"headline\":\"Working with Delete Requests in Angular\",\"datePublished\":\"2018-04-18T05:30:35+00:00\",\"dateModified\":\"2025-01-26T07:50:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/code-maze.com\/net-core-web-development-part15\/\"},\"wordCount\":375,\"commentCount\":9,\"publisher\":{\"@id\":\"https:\/\/code-maze.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/code-maze.com\/net-core-web-development-part15\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/code-maze.com\/wp-content\/uploads\/2018\/04\/angular-Working-with-Delete-Requests.png\",\"keywords\":[\".NET CORE\",\"Angular\",\"Angular components\",\"angular2\",\"angular4\",\"Decorators\",\"Directives\",\"EventEmmiters\",\"form validation\",\"HTTP\",\"Lazy loading\",\"modules\",\"reactive form validation\",\"repository\",\"Visual Studio code\",\"web developing\",\"web development\"],\"articleSection\":[\"Angular\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/code-maze.com\/net-core-web-development-part15\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/code-maze.com\/net-core-web-development-part15\/\",\"url\":\"https:\/\/code-maze.com\/net-core-web-development-part15\/\",\"name\":\"Angular - Working with Angular Delete Actions - Code Maze\",\"isPartOf\":{\"@id\":\"https:\/\/code-maze.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/code-maze.com\/net-core-web-development-part15\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/code-maze.com\/net-core-web-development-part15\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/code-maze.com\/wp-content\/uploads\/2018\/04\/angular-Working-with-Delete-Requests.png\",\"datePublished\":\"2018-04-18T05:30:35+00:00\",\"dateModified\":\"2025-01-26T07:50:36+00:00\",\"description\":\"This post is focused on Angular Delete Actions by using the DELETE request. We are going to delete entities and to finish the coding part of the series.\",\"breadcrumb\":{\"@id\":\"https:\/\/code-maze.com\/net-core-web-development-part15\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/code-maze.com\/net-core-web-development-part15\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/code-maze.com\/net-core-web-development-part15\/#primaryimage\",\"url\":\"https:\/\/code-maze.com\/wp-content\/uploads\/2018\/04\/angular-Working-with-Delete-Requests.png\",\"contentUrl\":\"https:\/\/code-maze.com\/wp-content\/uploads\/2018\/04\/angular-Working-with-Delete-Requests.png\",\"width\":1100,\"height\":620,\"caption\":\"angular Working with Delete Requests\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/code-maze.com\/net-core-web-development-part15\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/code-maze.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Working with Delete Requests in Angular\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/code-maze.com\/#website\",\"url\":\"https:\/\/code-maze.com\/\",\"name\":\"Code Maze\",\"description\":\"Learn. Code. Succeed.\",\"publisher\":{\"@id\":\"https:\/\/code-maze.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/code-maze.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/code-maze.com\/#organization\",\"name\":\"Code Maze\",\"url\":\"https:\/\/code-maze.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/code-maze.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/code-maze.com\/wp-content\/uploads\/2020\/01\/Code-Maze-Only-Logo-Transparent-HRez.png\",\"contentUrl\":\"https:\/\/code-maze.com\/wp-content\/uploads\/2020\/01\/Code-Maze-Only-Logo-Transparent-HRez.png\",\"width\":3511,\"height\":3510,\"caption\":\"Code Maze\"},\"image\":{\"@id\":\"https:\/\/code-maze.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/CodeMazeBlog\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/code-maze.com\/#\/schema\/person\/d6fa06e66820968d19b39fb63cff2533\",\"name\":\"Marinko Spasojevi\u0107\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/code-maze.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/code-maze.com\/wp-content\/uploads\/2020\/01\/marinko-1x1-3-150x150.jpg\",\"contentUrl\":\"https:\/\/code-maze.com\/wp-content\/uploads\/2020\/01\/marinko-1x1-3-150x150.jpg\",\"caption\":\"Marinko Spasojevi\u0107\"},\"description\":\"Hi, my name is Marinko Spasojevic. Currently, I work as a full-time .NET developer and my passion is web application development. Just getting something to work is not enough for me. To make it just how I like it, it must be readable, reusable, and easy to maintain. Prior to being an author on the CodeMaze blog, I had been working as a professor of Computer Science for several years. So, sharing knowledge while working as a full-time developer comes naturally to me.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/marinko-spasojevic\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/CodeMazeBlog\"],\"url\":\"https:\/\/code-maze.com\/author\/marinko\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Angular - Working with Angular Delete Actions - Code Maze","description":"This post is focused on Angular Delete Actions by using the DELETE request. We are going to delete entities and to finish the coding part of the series.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/code-maze.com\/net-core-web-development-part15\/","og_locale":"en_US","og_type":"article","og_title":"Angular - Working with Angular Delete Actions - Code Maze","og_description":"This post is focused on Angular Delete Actions by using the DELETE request. We are going to delete entities and to finish the coding part of the series.","og_url":"https:\/\/code-maze.com\/net-core-web-development-part15\/","og_site_name":"Code Maze","article_published_time":"2018-04-18T05:30:35+00:00","article_modified_time":"2025-01-26T07:50:36+00:00","og_image":[{"width":1100,"height":620,"url":"https:\/\/code-maze.com\/wp-content\/uploads\/2018\/04\/angular-Working-with-Delete-Requests.png","type":"image\/png"}],"author":"Marinko Spasojevi\u0107","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/CodeMazeBlog","twitter_site":"@CodeMazeBlog","twitter_misc":{"Written by":"Marinko Spasojevi\u0107","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/code-maze.com\/net-core-web-development-part15\/#article","isPartOf":{"@id":"https:\/\/code-maze.com\/net-core-web-development-part15\/"},"author":{"name":"Marinko Spasojevi\u0107","@id":"https:\/\/code-maze.com\/#\/schema\/person\/d6fa06e66820968d19b39fb63cff2533"},"headline":"Working with Delete Requests in Angular","datePublished":"2018-04-18T05:30:35+00:00","dateModified":"2025-01-26T07:50:36+00:00","mainEntityOfPage":{"@id":"https:\/\/code-maze.com\/net-core-web-development-part15\/"},"wordCount":375,"commentCount":9,"publisher":{"@id":"https:\/\/code-maze.com\/#organization"},"image":{"@id":"https:\/\/code-maze.com\/net-core-web-development-part15\/#primaryimage"},"thumbnailUrl":"https:\/\/code-maze.com\/wp-content\/uploads\/2018\/04\/angular-Working-with-Delete-Requests.png","keywords":[".NET CORE","Angular","Angular components","angular2","angular4","Decorators","Directives","EventEmmiters","form validation","HTTP","Lazy loading","modules","reactive form validation","repository","Visual Studio code","web developing","web development"],"articleSection":["Angular"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/code-maze.com\/net-core-web-development-part15\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/code-maze.com\/net-core-web-development-part15\/","url":"https:\/\/code-maze.com\/net-core-web-development-part15\/","name":"Angular - Working with Angular Delete Actions - Code Maze","isPartOf":{"@id":"https:\/\/code-maze.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/code-maze.com\/net-core-web-development-part15\/#primaryimage"},"image":{"@id":"https:\/\/code-maze.com\/net-core-web-development-part15\/#primaryimage"},"thumbnailUrl":"https:\/\/code-maze.com\/wp-content\/uploads\/2018\/04\/angular-Working-with-Delete-Requests.png","datePublished":"2018-04-18T05:30:35+00:00","dateModified":"2025-01-26T07:50:36+00:00","description":"This post is focused on Angular Delete Actions by using the DELETE request. We are going to delete entities and to finish the coding part of the series.","breadcrumb":{"@id":"https:\/\/code-maze.com\/net-core-web-development-part15\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/code-maze.com\/net-core-web-development-part15\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/code-maze.com\/net-core-web-development-part15\/#primaryimage","url":"https:\/\/code-maze.com\/wp-content\/uploads\/2018\/04\/angular-Working-with-Delete-Requests.png","contentUrl":"https:\/\/code-maze.com\/wp-content\/uploads\/2018\/04\/angular-Working-with-Delete-Requests.png","width":1100,"height":620,"caption":"angular Working with Delete Requests"},{"@type":"BreadcrumbList","@id":"https:\/\/code-maze.com\/net-core-web-development-part15\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/code-maze.com\/"},{"@type":"ListItem","position":2,"name":"Working with Delete Requests in Angular"}]},{"@type":"WebSite","@id":"https:\/\/code-maze.com\/#website","url":"https:\/\/code-maze.com\/","name":"Code Maze","description":"Learn. Code. Succeed.","publisher":{"@id":"https:\/\/code-maze.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/code-maze.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/code-maze.com\/#organization","name":"Code Maze","url":"https:\/\/code-maze.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/code-maze.com\/#\/schema\/logo\/image\/","url":"https:\/\/code-maze.com\/wp-content\/uploads\/2020\/01\/Code-Maze-Only-Logo-Transparent-HRez.png","contentUrl":"https:\/\/code-maze.com\/wp-content\/uploads\/2020\/01\/Code-Maze-Only-Logo-Transparent-HRez.png","width":3511,"height":3510,"caption":"Code Maze"},"image":{"@id":"https:\/\/code-maze.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/CodeMazeBlog"]},{"@type":"Person","@id":"https:\/\/code-maze.com\/#\/schema\/person\/d6fa06e66820968d19b39fb63cff2533","name":"Marinko Spasojevi\u0107","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/code-maze.com\/#\/schema\/person\/image\/","url":"https:\/\/code-maze.com\/wp-content\/uploads\/2020\/01\/marinko-1x1-3-150x150.jpg","contentUrl":"https:\/\/code-maze.com\/wp-content\/uploads\/2020\/01\/marinko-1x1-3-150x150.jpg","caption":"Marinko Spasojevi\u0107"},"description":"Hi, my name is Marinko Spasojevic. Currently, I work as a full-time .NET developer and my passion is web application development. Just getting something to work is not enough for me. To make it just how I like it, it must be readable, reusable, and easy to maintain. Prior to being an author on the CodeMaze blog, I had been working as a professor of Computer Science for several years. So, sharing knowledge while working as a full-time developer comes naturally to me.","sameAs":["https:\/\/www.linkedin.com\/in\/marinko-spasojevic\/","https:\/\/x.com\/https:\/\/twitter.com\/CodeMazeBlog"],"url":"https:\/\/code-maze.com\/author\/marinko\/"}]}},"_links":{"self":[{"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/posts\/2526","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/comments?post=2526"}],"version-history":[{"count":3,"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/posts\/2526\/revisions"}],"predecessor-version":[{"id":123798,"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/posts\/2526\/revisions\/123798"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/media\/54327"}],"wp:attachment":[{"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/media?parent=2526"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/categories?post=2526"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/tags?post=2526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}