{"id":20056,"date":"2015-05-30T12:10:58","date_gmt":"2015-05-30T06:40:58","guid":{"rendered":"https:\/\/2thenew.today\/blog\/?p=20056"},"modified":"2017-08-03T15:56:51","modified_gmt":"2017-08-03T10:26:51","slug":"angulars-resource-for-crud-operations","status":"publish","type":"post","link":"https:\/\/2thenew.today\/blog\/angulars-resource-for-crud-operations\/","title":{"rendered":"Angular\u2019s $resource for CRUD Operations"},"content":{"rendered":"<p><strong>$resouce<\/strong> is a perfect option to create a single page application which involve <strong>CRUD<\/strong> operations.You don&#8217;t write your CRUD methods (create,read,update and delete) when you use it.<\/p>\n<p>A RESTful web service with one endpoint for a data type that does different things with that data type based on HTTP methods like\u00a0GET,\u00a0POST,\u00a0PUT,\u00a0DELETE, etc. So with a\u00a0$resource service, you can call a\u00a0GET method to get the resource as a JavaScript object, then alter it and send it back using POST method, or may perform even delete operation with\u00a0DELETE method.<br \/>\nAs we already said that $resource is use full for REStful service so it expects a classic RESTful back-end and your end point should be in the following format:<\/p>\n<table class=\"reference\" style=\"height: 241px;\" width=\"693;\">\n<tbody>\n<tr>\n<th>Method<\/th>\n<th>API URL<\/th>\n<th>PAYLOAD<\/th>\n<th>Result<\/th>\n<\/tr>\n<tr>\n<td>GET<\/td>\n<td><\/td>\n<td>empty<\/td>\n<td>Returns all products<\/td>\n<\/tr>\n<tr>\n<td>POST<\/td>\n<td><\/td>\n<td>JSON Object<\/td>\n<td>New product created<\/td>\n<\/tr>\n<tr>\n<td>GET<\/td>\n<td><\/td>\n<td>empty<\/td>\n<td>Returns single product<\/td>\n<\/tr>\n<tr>\n<td>PUT<\/td>\n<td><\/td>\n<td>JSON Object<\/td>\n<td>Returns all products<\/td>\n<\/tr>\n<tr>\n<td>DELETE<\/td>\n<td><\/td>\n<td>empty<\/td>\n<td>Delete existing product<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Let\u2019s use it<\/strong><\/p>\n<p>You need to download a file called\u00a0<strong>angular-resource.js<\/strong>\u00a0and include it in your HTML page<\/p>\n<p>[js]<br \/>\n&lt;script src=\u00a0&lt;strong&gt;angular-resource.js&lt;\/script&gt;<br \/>\n[\/js]<\/p>\n<p>Then add as module dependency:<\/p>\n<p>[js]<br \/>\nangular.module(&quot;myApp&quot;, [&quot;ngResource&quot;]) \/\/myApp is our main<br \/>\n[\/js]<\/p>\n<p>After this create a service\u00a0in you app with $resouce dependency.<\/p>\n<p><strong>Syntax<\/strong><\/p>\n<p>[js]<br \/>\n$resource(url,{paramDefaults},{actions},{options});<br \/>\n[\/js]<\/p>\n<p>Where url is required parameter which is web app url for endpoints.paramDefaults are defaults for url params. The action methods which map to CRUD operations (Note: you can have your own action methods).options are Used to remove the trailing slashes from the url with the help of stripTrailingSlashes property.<\/p>\n<p>Object of $resource returned\u00a0following action methods to perform CRUD operations<\/p>\n<p>&#8216;<strong>save<\/strong>&#8216;: {method:&#8217;POST&#8217;},<br \/>\n&#8216;<strong>get<\/strong>&#8216;: {method:&#8217;GET&#8217;},<br \/>\n&#8216;<strong>query<\/strong>&#8216;: {method:&#8217;GET&#8217;, isArray:true},<br \/>\n&#8216;<strong>delete<\/strong>&#8216;: {method:&#8217;DELETE&#8217;} };<br \/>\n&#8216;<strong>remove<\/strong>&#8216;: {method:&#8217;DELETE&#8217;},<\/p>\n<p>after this\u00a0, you can use them in your controller to perform CRUD operations:<\/p>\n<p>Example &#8211;<\/p>\n<p>Service :<\/p>\n<p>[js]<br \/>\nangular.module(&#8216;myApp&#8217;)<br \/>\n.factory(&#8216;ProductService&#8217;, [&#8216;$resource&#8217;,<br \/>\n    function ($resource) {<br \/>\n        return $resource(&#8216;\/products&#8217;, {}, {<br \/>\n            query: { method: &quot;GET&quot;, isArray: true },<br \/>\n            create: { method: &quot;POST&quot;},<br \/>\n            get: { method: &quot;GET&quot;},<br \/>\n            remove: { method: &quot;DELETE&quot;},<br \/>\n            update: { method: &quot;PUT&quot;}<br \/>\n\t\t});<\/p>\n<p>}]);<br \/>\n[\/js]<\/p>\n<p>Controller:<\/p>\n<p>[js]<br \/>\nangular.module(&#8216;myApp&#8217;)<br \/>\n.controller(&#8216;ProductCtrl&#8217;, [ &#8216;ProductService&#8217;, &#8216;$scope&#8217;, function (ProductService, $scope) {<\/p>\n<p>    \/\/ Create a new product<br \/>\n\t$scope.createProduct = function() {<br \/>\n\t\tvar payload = {<br \/>\n    \t\t\tname: &#8216;Shirt&#8217;,<br \/>\n\t\t\t    color: &#8216;red&#8217;,<br \/>\n\t\t\t    size: &#8216;small&#8217;<br \/>\n\t\t};<br \/>\n\t\tProductService.create(payload, function(data) {<br \/>\n     \t\t\t\/\/ do something which you want with response<br \/>\n\t\t});<br \/>\n\t};<\/p>\n<p>\t\/\/ Get a single product<br \/>\n\t$scope.getProduct = function() {<br \/>\n\t\tProductService.get({id: 1234}, function(data) {<br \/>\n\t\t   \/\/ do something which you want with response<br \/>\n\t\t});<br \/>\n\t};<\/p>\n<p>\t\/\/ Update a product<br \/>\n\t$scope.updateProduct = function() {<br \/>\n\t\tProductService.update({id: 1234,color:blue}, function(data) {<br \/>\n     \t\t\/\/ do something which you want with response<br \/>\n       });<br \/>\n\t};<\/p>\n<p>\t\/\/ Delete a product<br \/>\n\t$scope.deleteProduct = function() {<br \/>\n\t\tProductService.remove({id: 1234}, function(data) {<br \/>\n   \t\t \/\/ do something which you want with response<br \/>\n  \t\t});<br \/>\n\t};<\/p>\n<p>}]);<br \/>\n[\/js]<\/p>\n<p>So in this way we can quickly <a href=\"https:\/\/2thenew.today\/blog\/building-intuitive-frontend-interfaces-with-angularjs\/\">create a Single Page Applications which involve CRUD<\/a> operations.<\/p>\n<p>Hope this helps.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>$resouce is a perfect option to create a single page application which involve CRUD operations.You don&#8217;t write your CRUD methods (create,read,update and delete) when you use it. A RESTful web service with one endpoint for a data type that does different things with that data type based on HTTP methods like\u00a0GET,\u00a0POST,\u00a0PUT,\u00a0DELETE, etc. So with a\u00a0$resource [&hellip;]<\/p>\n","protected":false},"author":146,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":18,"footnotes":""},"categories":[1439,3429,1185],"tags":[1820,3955,1186,1822,4697,55,1156,1821],"class_list":["post-20056","post","type-post","status-publish","format-standard","hentry","category-angular","category-front-end-development","category-node-js-2","tag-resouce","tag-angular-development","tag-angular-js","tag-angulars-resource-for-crud-operations","tag-angularjs-development-company","tag-javascript","tag-node","tag-restful-serivce"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"$resouce is a perfect option to create a single page application which involve CRUD operations.You don&#039;t write your CRUD methods (create,read,update and delete) when you use it. A RESTful web service with one endpoint for a data type that does different things with that data type based on HTTP methods like GET, POST, PUT, DELETE, etc. So with a $resource\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Rubi Saini\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.today\/blog\/angulars-resource-for-crud-operations\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Angular\u2019s $resource for CRUD Operations | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"$resouce is a perfect option to create a single page application which involve CRUD operations.You don&#039;t write your CRUD methods (create,read,update and delete) when you use it. A RESTful web service with one endpoint for a data type that does different things with that data type based on HTTP methods like GET, POST, PUT, DELETE, etc. So with a $resource\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.today\/blog\/angulars-resource-for-crud-operations\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Angular\u2019s $resource for CRUD Operations | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"$resouce is a perfect option to create a single page application which involve CRUD operations.You don&#039;t write your CRUD methods (create,read,update and delete) when you use it. A RESTful web service with one endpoint for a data type that does different things with that data type based on HTTP methods like GET, POST, PUT, DELETE, etc. So with a $resource\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angulars-resource-for-crud-operations\\\/#article\",\"name\":\"Angular\\u2019s $resource for CRUD Operations | TO THE NEW Blog\",\"headline\":\"Angular\\u2019s $resource for CRUD Operations\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/rubi-saini\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2015-05-30T12:10:58+05:30\",\"dateModified\":\"2017-08-03T15:56:51+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":3,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angulars-resource-for-crud-operations\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angulars-resource-for-crud-operations\\\/#webpage\"},\"articleSection\":\"AngularJS, Front End Development, Node.js, $resouce, angular development, Angular.js, Angular\\u2019s $resource for CRUD Operations, AngularJS Development Company, javascript, node, RESTful serivce\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angulars-resource-for-crud-operations\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/node-js-2\\\/#listItem\",\"name\":\"Node.js\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/node-js-2\\\/#listItem\",\"position\":2,\"name\":\"Node.js\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/node-js-2\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angulars-resource-for-crud-operations\\\/#listItem\",\"name\":\"Angular\\u2019s $resource for CRUD Operations\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angulars-resource-for-crud-operations\\\/#listItem\",\"position\":3,\"name\":\"Angular\\u2019s $resource for CRUD Operations\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/node-js-2\\\/#listItem\",\"name\":\"Node.js\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/rubi-saini\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/rubi-saini\\\/\",\"name\":\"Rubi Saini\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angulars-resource-for-crud-operations\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0669cc01fd681ba501b5f5ebc7746e47f4296bfc9a4f0ac2e789cee74fb675f5?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Rubi Saini\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angulars-resource-for-crud-operations\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angulars-resource-for-crud-operations\\\/\",\"name\":\"Angular\\u2019s $resource for CRUD Operations | TO THE NEW Blog\",\"description\":\"$resouce is a perfect option to create a single page application which involve CRUD operations.You don't write your CRUD methods (create,read,update and delete) when you use it. A RESTful web service with one endpoint for a data type that does different things with that data type based on HTTP methods like GET, POST, PUT, DELETE, etc. So with a $resource\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angulars-resource-for-crud-operations\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/rubi-saini\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/rubi-saini\\\/#author\"},\"datePublished\":\"2015-05-30T12:10:58+05:30\",\"dateModified\":\"2017-08-03T15:56:51+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Angular\u2019s $resource for CRUD Operations | TO THE NEW Blog","description":"$resouce is a perfect option to create a single page application which involve CRUD operations.You don't write your CRUD methods (create,read,update and delete) when you use it. A RESTful web service with one endpoint for a data type that does different things with that data type based on HTTP methods like GET, POST, PUT, DELETE, etc. So with a $resource","canonical_url":"https:\/\/2thenew.today\/blog\/angulars-resource-for-crud-operations\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.today\/blog\/angulars-resource-for-crud-operations\/#article","name":"Angular\u2019s $resource for CRUD Operations | TO THE NEW Blog","headline":"Angular\u2019s $resource for CRUD Operations","author":{"@id":"https:\/\/2thenew.today\/blog\/author\/rubi-saini\/#author"},"publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"},"datePublished":"2015-05-30T12:10:58+05:30","dateModified":"2017-08-03T15:56:51+05:30","inLanguage":"en-US","commentCount":3,"mainEntityOfPage":{"@id":"https:\/\/2thenew.today\/blog\/angulars-resource-for-crud-operations\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/angulars-resource-for-crud-operations\/#webpage"},"articleSection":"AngularJS, Front End Development, Node.js, $resouce, angular development, Angular.js, Angular\u2019s $resource for CRUD Operations, AngularJS Development Company, javascript, node, RESTful serivce"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.today\/blog\/angulars-resource-for-crud-operations\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.today\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/node-js-2\/#listItem","name":"Node.js"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/node-js-2\/#listItem","position":2,"name":"Node.js","item":"https:\/\/2thenew.today\/blog\/category\/node-js-2\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/angulars-resource-for-crud-operations\/#listItem","name":"Angular\u2019s $resource for CRUD Operations"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/angulars-resource-for-crud-operations\/#listItem","position":3,"name":"Angular\u2019s $resource for CRUD Operations","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/node-js-2\/#listItem","name":"Node.js"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.today\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.today\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.today\/blog\/author\/rubi-saini\/#author","url":"https:\/\/2thenew.today\/blog\/author\/rubi-saini\/","name":"Rubi Saini","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.today\/blog\/angulars-resource-for-crud-operations\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/0669cc01fd681ba501b5f5ebc7746e47f4296bfc9a4f0ac2e789cee74fb675f5?s=96&d=mm&r=g","width":96,"height":96,"caption":"Rubi Saini"}},{"@type":"WebPage","@id":"https:\/\/2thenew.today\/blog\/angulars-resource-for-crud-operations\/#webpage","url":"https:\/\/2thenew.today\/blog\/angulars-resource-for-crud-operations\/","name":"Angular\u2019s $resource for CRUD Operations | TO THE NEW Blog","description":"$resouce is a perfect option to create a single page application which involve CRUD operations.You don't write your CRUD methods (create,read,update and delete) when you use it. A RESTful web service with one endpoint for a data type that does different things with that data type based on HTTP methods like GET, POST, PUT, DELETE, etc. So with a $resource","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.today\/blog\/angulars-resource-for-crud-operations\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.today\/blog\/author\/rubi-saini\/#author"},"creator":{"@id":"https:\/\/2thenew.today\/blog\/author\/rubi-saini\/#author"},"datePublished":"2015-05-30T12:10:58+05:30","dateModified":"2017-08-03T15:56:51+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.today\/blog\/#website","url":"https:\/\/2thenew.today\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Angular\u2019s $resource for CRUD Operations | TO THE NEW Blog","og:description":"$resouce is a perfect option to create a single page application which involve CRUD operations.You don't write your CRUD methods (create,read,update and delete) when you use it. A RESTful web service with one endpoint for a data type that does different things with that data type based on HTTP methods like GET, POST, PUT, DELETE, etc. So with a $resource","og:url":"https:\/\/2thenew.today\/blog\/angulars-resource-for-crud-operations\/","og:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Angular\u2019s $resource for CRUD Operations | TO THE NEW Blog","twitter:description":"$resouce is a perfect option to create a single page application which involve CRUD operations.You don't write your CRUD methods (create,read,update and delete) when you use it. A RESTful web service with one endpoint for a data type that does different things with that data type based on HTTP methods like GET, POST, PUT, DELETE, etc. So with a $resource","twitter:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"20056","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"blog","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 22:13:56","updated":"2024-02-29 09:32:21","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.today\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.today\/blog\/category\/node-js-2\/\" title=\"Node.js\">Node.js<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tAngular\u2019s $resource for CRUD Operations\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.today\/blog"},{"label":"Node.js","link":"https:\/\/2thenew.today\/blog\/category\/node-js-2\/"},{"label":"Angular\u2019s $resource for CRUD Operations","link":"https:\/\/2thenew.today\/blog\/angulars-resource-for-crud-operations\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/20056","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/users\/146"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/comments?post=20056"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/20056\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/media?parent=20056"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/categories?post=20056"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/tags?post=20056"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}