{"id":11563,"date":"2022-04-01T03:00:34","date_gmt":"2022-04-01T03:00:34","guid":{"rendered":"https:\/\/www.htmlgoodies.com\/?p=11563"},"modified":"2022-04-04T03:27:53","modified_gmt":"2022-04-04T03:27:53","slug":"loading-nodes-angular","status":"publish","type":"post","link":"https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/","title":{"rendered":"Loading Saves Nodes in Angular"},"content":{"rendered":"
\n

Part 2: Loading Saved Nodes<\/h2>\n<\/blockquote>\n

Welcome to the second and final installment of this web development tutorial series on Recursive Tree Node Processing<\/em>. In part one, we wrote code to save vehicle manufacturer, model, and level selections from the VehicleNode<\/strong> tree. The save operation entailed the creation of a simplified tree by whittling it down to those nodes which were selected. In today’s follow-up, we will add the other half of the functionality to our demo app to apply saved selections to the matTree<\/strong> control. This exercise will require us to match saved ids to those in the TREE_DATA<\/strong> in order to programmatically select saved nodes.<\/p>\n

If you missed the first part of this Angular tutorial or need a refresher, we suggest you read: Recursive Tree Node Processing in Angular<\/a>.<\/p>\n

Invoking the loadSelection() Method<\/h2>\n

Recall that, in the demo app<\/a>, vehicle selections are persisted to, and recalled from, a list of links, which can be seen above the MatTree<\/strong> control:<\/p>\n

\"Tree<\/p>\n

 <\/p>\n

Clicking a link invokes the loadSelection()<\/strong> method, rather than navigating to another page, as most links do. There are a few stodgy web developers who admonish those who would dare use links to trigger actions rather than navigation. To them, I say pshaw!<\/p>\n

The trick is to set the href<\/strong> attribute to “javascript:void(0)<\/strong>” and then bind our method to the click<\/strong> handler. We will pass it the array index so that we know which selection was clicked:<\/p>\n

<div class=\"saved-selections\">Load selection:<br\/> \r\n  <ul>\r\n  <li *ngFor=\"let savedSelection of savedSelections; let i=index\">\r\n      <a role=\"button\" href=\"javascript:void(0)\" (click)=\"loadSelection(i)\">{{savedSelection.name}}<\/a><br\/>\r\n  <\/li>\r\n<\/ul>\r\n<\/div>\r\n<\/pre>\n

Read:<\/strong> Filter DOM Nodes Using a Tree Walker<\/a><\/p>\n

Clearing the Current Selection with deselctAllNodes()<\/h2>\n

Before loading a previous configuration of selected nodes, we must first deselect any and all nodes that are already selected. Otherwise, we would end up with extra selections. This responsibility is handed off to the recursive deselectAllNodes()<\/strong> method. As we have seen in Part One, we need to invoke the recursive method within a loop that iterates over every root node, since each of these represents a separate tree:<\/p>\n

public loadSelection(index: number) {\r\n  this.deselectAllNodes(this.dataSource.data);\r\n\r\n  \/\/ Toggle the selected nodes...\r\n}\r\n<\/pre>\n

The deselectAllNodes()<\/strong> method targets all selected and indeterminate nodes and toggles them off. Then it does the same for each node’s children:<\/p>\n

private deselectAllNodes(vehicleNodes: VehicleNode[]) {\r\n  vehicleNodes.forEach(node => {\r\n    if(node.selected) {\r\n      node.selected = false;\r\n    }\r\n    if (node.children) {\r\n      if(node.indeterminate) {\r\n        node.indeterminate = false;\r\n      }\r\n      this.deselectAllNodes(node.children);\r\n    }\r\n  });\r\n}\r\n<\/pre>\n

Once all nodes have been deselected, the saved selections are retrieved by index, and the toggleSelectedNodes()<\/strong> method goes to work on activating nodes in the MatTree<\/strong> according to the stored IDs in the savedSelections’<\/strong> selections<\/strong> attribute:<\/p>\n

public loadSelection(index: number) {\r\n  this.dataSource.data.forEach(node => {\r\n    this.deselectAllNodes(node);\r\n  });\r\n  const savedSelections = this.savedSelections[index];\r\n  this.toggleSelectedNodes(\r\n    savedSelections.selections, \r\n    this.dataSource.data\r\n  );\r\n}\r\n<\/pre>\n

As to be expected, toggleSelectedNodes()<\/strong> also processes nodes in a recursive manner. Since selections store node ids<\/strong> as far down each tree branch that is necessary to identify selected nodes, toggleSelectedNodes()<\/strong> must also follow each branch until there are no more children. This becomes apparent when we review an example SavedSelection<\/strong> object:<\/p>\n

{\r\n  name: \"Infiniti Selections\",\r\n  selections: [{\r\n    id: \"infiniti\",\r\n    children: [\r\n      {\r\n        id: \"g50\",\r\n        children: [ { id: 2 } ]\r\n      },\r\n      { id: \"qx50\" }\r\n    ]\r\n  }]\r\n}\r\n<\/pre>\n

The first step is to match the stored id <\/strong>with that of a VehicleNode<\/strong>. If both the vehicleSelection <\/strong>and vehicleNode <\/strong>have children, the method is again applied to each object’s children. Once we have reached the leaf node of the vehicleSelection<\/strong>, it is time to call itemToggle()<\/strong> on the corresponding vehicleNode<\/strong>. The great thing about that approach is that itemToggle()<\/strong> will take care of selecting all of the node’s ancestors for us! If any part of the VehicleNodes<\/strong> object does not match up with the saved VehicleSelections<\/strong>, a warning is output to the console while the method proceeds to go through the remaining VehicleSelections<\/strong>:<\/p>\n

private toggleSelectedNodes(\r\n  vehicleSelections: VehicleSelection[],\r\n  vehicleNodes: VehicleNode[]\r\n) {\r\n  vehicleSelections.forEach(selection => {\r\n    const vehicleNode = vehicleNodes.find(\r\n      vehicleNode => vehicleNode.id === selection.id\r\n    );\r\n    if (vehicleNode) {\r\n      if (selection.children) {\r\n        if (vehicleNode.children) {\r\n          this.toggleSelectedNodes(\r\n            selection.children, \r\n            vehicleNode.children\r\n          );\r\n        } else {\r\n          console.warn(`Node with id '${vehicleNode.id}' has no children.`)\r\n        }\r\n      } else {\r\n        this.itemToggle(true, vehicleNode);\r\n      }\r\n    } else {\r\n      console.warn(`Couldn't find vehicle node with id '${selection.id}'`)\r\n    }\r\n  });\r\n}\r\n<\/pre>\n

Here is the updated demo<\/a> that includes the new selection loading functionality.<\/p>\n

Conclusion<\/h2>\n

And that brings us to the end of this two-part series. In the first installment, we covered the basic structure of the recursive function, and then put it to use to persist the array of VehicleNodes that was introduced in the Tracking Selections with Checkboxes in Angular<\/a> article back in December. In this article, we reconstituted the original VehicleNodes<\/strong> tree from saved selections.<\/p>\n

Read more Angular web development tutorials<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"

Part 2: Loading Saved Nodes Welcome to the second and final installment of this web development tutorial series on Recursive Tree Node Processing. In part one, we wrote code to save vehicle manufacturer, model, and level selections from the VehicleNode tree. The save operation entailed the creation of a simplified tree by whittling it down […]<\/p>\n","protected":false},"author":90,"featured_media":10959,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[30620],"tags":[8817,13152,3385],"b2b_audience":[37],"b2b_industry":[65],"b2b_product":[69,70,71,76,131,68,81,82,133,83,84,107,86,30818,93,94,99,114,115,116,85,117,80,128,98,135],"acf":[],"yoast_head":"\nLoading Saves Nodes in Angular | HTMLGoodies.com<\/title>\n<meta name=\"description\" content=\"A continuation on our web development series covering recursive tree node processing in Angular. Learn more Angular.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Loading Saves Nodes in Angular | HTMLGoodies.com\" \/>\n<meta property=\"og:description\" content=\"A continuation on our web development series covering recursive tree node processing in Angular. Learn more Angular.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/\" \/>\n<meta property=\"og:site_name\" content=\"HTML Goodies\" \/>\n<meta property=\"article:published_time\" content=\"2022-04-01T03:00:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-04T03:27:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/07\/Angular-JavaScript.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"640\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@htmlgoodies\" \/>\n<meta name=\"twitter:site\" content=\"@htmlgoodies\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rob Gravelle\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.htmlgoodies.com\/#organization\",\"name\":\"HTML Goodies\",\"url\":\"https:\/\/www.htmlgoodies.com\/\",\"sameAs\":[\"https:\/\/twitter.com\/htmlgoodies\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.htmlgoodies.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/03\/HTMLg_weblogo_MobileLogo.png\",\"contentUrl\":\"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/03\/HTMLg_weblogo_MobileLogo.png\",\"width\":584,\"height\":136,\"caption\":\"HTML Goodies\"},\"image\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.htmlgoodies.com\/#website\",\"url\":\"https:\/\/www.htmlgoodies.com\/\",\"name\":\"HTML Goodies\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.htmlgoodies.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/#primaryimage\",\"url\":\"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/07\/Angular-JavaScript.png\",\"contentUrl\":\"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/07\/Angular-JavaScript.png\",\"width\":1280,\"height\":640,\"caption\":\"Angular JavaScript\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/#webpage\",\"url\":\"https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/\",\"name\":\"Loading Saves Nodes in Angular | HTMLGoodies.com\",\"isPartOf\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/#primaryimage\"},\"datePublished\":\"2022-04-01T03:00:34+00:00\",\"dateModified\":\"2022-04-04T03:27:53+00:00\",\"description\":\"A continuation on our web development series covering recursive tree node processing in Angular. Learn more Angular.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.htmlgoodies.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Loading Saves Nodes in Angular\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/#webpage\"},\"author\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/#\/schema\/person\/d340101131281902e682ad0190b7ac75\"},\"headline\":\"Loading Saves Nodes in Angular\",\"datePublished\":\"2022-04-01T03:00:34+00:00\",\"dateModified\":\"2022-04-04T03:27:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/#webpage\"},\"wordCount\":623,\"publisher\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/07\/Angular-JavaScript.png\",\"keywords\":[\"Angular\",\"DOM\",\"JavaScript\"],\"articleSection\":[\"Javascript\"],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.htmlgoodies.com\/#\/schema\/person\/d340101131281902e682ad0190b7ac75\",\"name\":\"Rob Gravelle\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.htmlgoodies.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/05\/rob-gravelle-150x150.jpg\",\"contentUrl\":\"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/05\/rob-gravelle-150x150.jpg\",\"caption\":\"Rob Gravelle\"},\"description\":\"Rob Gravelle resides in Ottawa, Canada, and has been an IT guru for over 20 years. In that time, Rob has built systems for intelligence-related organizations such as Canada Border Services and various commercial businesses. In his spare time, Rob has become an accomplished music artist with several CDs and digital releases to his credit.\",\"url\":\"https:\/\/www.htmlgoodies.com\/author\/rob-gravelle\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Loading Saves Nodes in Angular | HTMLGoodies.com","description":"A continuation on our web development series covering recursive tree node processing in Angular. Learn more Angular.","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:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/","og_locale":"en_US","og_type":"article","og_title":"Loading Saves Nodes in Angular | HTMLGoodies.com","og_description":"A continuation on our web development series covering recursive tree node processing in Angular. Learn more Angular.","og_url":"https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/","og_site_name":"HTML Goodies","article_published_time":"2022-04-01T03:00:34+00:00","article_modified_time":"2022-04-04T03:27:53+00:00","og_image":[{"width":1280,"height":640,"url":"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/07\/Angular-JavaScript.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_creator":"@htmlgoodies","twitter_site":"@htmlgoodies","twitter_misc":{"Written by":"Rob Gravelle","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/www.htmlgoodies.com\/#organization","name":"HTML Goodies","url":"https:\/\/www.htmlgoodies.com\/","sameAs":["https:\/\/twitter.com\/htmlgoodies"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.htmlgoodies.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/03\/HTMLg_weblogo_MobileLogo.png","contentUrl":"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/03\/HTMLg_weblogo_MobileLogo.png","width":584,"height":136,"caption":"HTML Goodies"},"image":{"@id":"https:\/\/www.htmlgoodies.com\/#\/schema\/logo\/image\/"}},{"@type":"WebSite","@id":"https:\/\/www.htmlgoodies.com\/#website","url":"https:\/\/www.htmlgoodies.com\/","name":"HTML Goodies","description":"","publisher":{"@id":"https:\/\/www.htmlgoodies.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.htmlgoodies.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/#primaryimage","url":"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/07\/Angular-JavaScript.png","contentUrl":"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/07\/Angular-JavaScript.png","width":1280,"height":640,"caption":"Angular JavaScript"},{"@type":"WebPage","@id":"https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/#webpage","url":"https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/","name":"Loading Saves Nodes in Angular | HTMLGoodies.com","isPartOf":{"@id":"https:\/\/www.htmlgoodies.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/#primaryimage"},"datePublished":"2022-04-01T03:00:34+00:00","dateModified":"2022-04-04T03:27:53+00:00","description":"A continuation on our web development series covering recursive tree node processing in Angular. Learn more Angular.","breadcrumb":{"@id":"https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.htmlgoodies.com\/"},{"@type":"ListItem","position":2,"name":"Loading Saves Nodes in Angular"}]},{"@type":"Article","@id":"https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/#article","isPartOf":{"@id":"https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/#webpage"},"author":{"@id":"https:\/\/www.htmlgoodies.com\/#\/schema\/person\/d340101131281902e682ad0190b7ac75"},"headline":"Loading Saves Nodes in Angular","datePublished":"2022-04-01T03:00:34+00:00","dateModified":"2022-04-04T03:27:53+00:00","mainEntityOfPage":{"@id":"https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/#webpage"},"wordCount":623,"publisher":{"@id":"https:\/\/www.htmlgoodies.com\/#organization"},"image":{"@id":"https:\/\/www.htmlgoodies.com\/javascript\/loading-nodes-angular\/#primaryimage"},"thumbnailUrl":"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/07\/Angular-JavaScript.png","keywords":["Angular","DOM","JavaScript"],"articleSection":["Javascript"],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.htmlgoodies.com\/#\/schema\/person\/d340101131281902e682ad0190b7ac75","name":"Rob Gravelle","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.htmlgoodies.com\/#\/schema\/person\/image\/","url":"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/05\/rob-gravelle-150x150.jpg","contentUrl":"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/05\/rob-gravelle-150x150.jpg","caption":"Rob Gravelle"},"description":"Rob Gravelle resides in Ottawa, Canada, and has been an IT guru for over 20 years. In that time, Rob has built systems for intelligence-related organizations such as Canada Border Services and various commercial businesses. In his spare time, Rob has become an accomplished music artist with several CDs and digital releases to his credit.","url":"https:\/\/www.htmlgoodies.com\/author\/rob-gravelle\/"}]}},"_links":{"self":[{"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/posts\/11563"}],"collection":[{"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/users\/90"}],"replies":[{"embeddable":true,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/comments?post=11563"}],"version-history":[{"count":0,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/posts\/11563\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/media\/10959"}],"wp:attachment":[{"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/media?parent=11563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/categories?post=11563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/tags?post=11563"},{"taxonomy":"b2b_audience","embeddable":true,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/b2b_audience?post=11563"},{"taxonomy":"b2b_industry","embeddable":true,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/b2b_industry?post=11563"},{"taxonomy":"b2b_product","embeddable":true,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/b2b_product?post=11563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}