{"id":9890,"date":"2013-03-13T18:41:20","date_gmt":"2013-03-13T13:11:20","guid":{"rendered":"https:\/\/2thenew.today\/blog\/?p=9890"},"modified":"2017-08-03T14:03:44","modified_gmt":"2017-08-03T08:33:44","slug":"angularjs-sharing-data-between-two-controllers-through-a-service","status":"publish","type":"post","link":"https:\/\/2thenew.today\/blog\/angularjs-sharing-data-between-two-controllers-through-a-service\/","title":{"rendered":"AngularJS: Sharing Data between two controllers through a service"},"content":{"rendered":"<p style=\"text-align: justify;\">The topic of this post is quite confusing for many developers as they face problems in\u00a0identifying\u00a0the best practice to <a title=\"Angular Development\" href=\"https:\/\/2thenew.today\/front-end-angularjs-development\">share data between controllers in AngularJS<\/a>. Some of the articles out there tell to use $rootScope but that&#8217;s not the correct approach to enable this functionality.<\/p>\n<p style=\"text-align: justify;\">A more cleaner and better way of doing so is through a shared service, lets see some code below which will make everything clear.<\/p>\n<p>[js]\/\/Angular Code<br \/>\nvar app = angular.module(&#8216;myApp&#8217;, []);<\/p>\n<p>app.factory(&#8216;MyTestData&#8217;, function() {<br \/>\n    var testData = {key: &#8216;value&#8217;,key1:&#8217;value1&#8242;};<br \/>\n    return {<br \/>\n        showData: function() {<br \/>\n            console.log(&#8216;Printing Data&#8230;..&#8217;);<br \/>\n            return testData;<br \/>\n        }<br \/>\n    };<br \/>\n});<\/p>\n<p>function First($scope, MyTestData) {<br \/>\n    console.log(&#8216;First Controller&#8230;&#8230;&#8230;..&#8217;);<br \/>\n    console.log(MyTestData.showData());<br \/>\n}<\/p>\n<p>function Second($scope, MyTestData) {<br \/>\n    console.log(&#8216;Second Controller&#8230;&#8230;&#8230;.&#8217;);<br \/>\n    console.log(MyTestData.showData());<br \/>\n}<br \/>\n[\/js]<\/p>\n<p>&nbsp;<\/p>\n<p>[html]&lt;!&#8211;html code&#8211;&gt;&lt;\/pre&gt;<br \/>\n&lt;div&gt;&lt;\/div&gt;<br \/>\n&lt;div&gt;&lt;\/div&gt;<br \/>\n&lt;pre&gt;<br \/>\n[\/html]<\/p>\n<p style=\"text-align: justify;\">When you run the above code, it will console the value of testData in the browser from both the controllers. In the above code we have used .factory which is another way of <a title=\"Building Intuitive Frontend Interfaces with AngularJS\" href=\"https:\/\/2thenew.today\/blog\/building-intuitive-frontend-interfaces-with-angularjs\/\">defining a service<\/a>, you can find more information regarding that in angular docs. I hope it helps, feel free to ask if you have any queries.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The topic of this post is quite confusing for many developers as they face problems in\u00a0identifying\u00a0the best practice to share data between controllers in AngularJS. Some of the articles out there tell to use $rootScope but that&#8217;s not the correct approach to enable this functionality. A more cleaner and better way of doing so is [&hellip;]<\/p>\n","protected":false},"author":63,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":8,"footnotes":""},"categories":[1439,3429],"tags":[3955,955,4697,1143,1144],"class_list":["post-9890","post","type-post","status-publish","format-standard","hentry","category-angular","category-front-end-development","tag-angular-development","tag-angularjs","tag-angularjs-development-company","tag-controllers","tag-shared-service"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"The topic of this post is quite confusing for many developers as they face problems in identifying the best practice to share data between controllers in AngularJS. Some of the articles out there tell to use $rootScope but that&#039;s not the correct approach to enable this functionality. A more cleaner and better way of doing so is\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Suroor Wijdan\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.today\/blog\/angularjs-sharing-data-between-two-controllers-through-a-service\/\" \/>\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=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"AngularJS: Sharing Data between two controllers through a service | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"The topic of this post is quite confusing for many developers as they face problems in identifying the best practice to share data between controllers in AngularJS. Some of the articles out there tell to use $rootScope but that&#039;s not the correct approach to enable this functionality. A more cleaner and better way of doing so is\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.today\/blog\/angularjs-sharing-data-between-two-controllers-through-a-service\/\" \/>\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 property=\"article:tag\" content=\"angularjs\" \/>\n\t\t<meta property=\"article:tag\" content=\"front end development\" \/>\n\t\t<meta property=\"article:tag\" content=\"angular development\" \/>\n\t\t<meta property=\"article:tag\" content=\"angularjs development company\" \/>\n\t\t<meta property=\"article:tag\" content=\"controllers\" \/>\n\t\t<meta property=\"article:tag\" content=\"shared service\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2013-03-13T13:11:20+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2017-08-03T08:33:44+00:00\" \/>\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=\"AngularJS: Sharing Data between two controllers through a service | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"The topic of this post is quite confusing for many developers as they face problems in identifying the best practice to share data between controllers in AngularJS. Some of the articles out there tell to use $rootScope but that&#039;s not the correct approach to enable this functionality. A more cleaner and better way of doing so is\" \/>\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\\\/angularjs-sharing-data-between-two-controllers-through-a-service\\\/#article\",\"name\":\"AngularJS: Sharing Data between two controllers through a service | TO THE NEW Blog\",\"headline\":\"AngularJS: Sharing Data between two controllers through a service\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/suroor\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2013-03-13T18:41:20+05:30\",\"dateModified\":\"2017-08-03T14:03:44+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angularjs-sharing-data-between-two-controllers-through-a-service\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angularjs-sharing-data-between-two-controllers-through-a-service\\\/#webpage\"},\"articleSection\":\"AngularJS, Front End Development, angular development, AngularJS, AngularJS Development Company, controllers, shared service\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angularjs-sharing-data-between-two-controllers-through-a-service\\\/#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\\\/angular\\\/#listItem\",\"name\":\"AngularJS\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/angular\\\/#listItem\",\"position\":2,\"name\":\"AngularJS\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/angular\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angularjs-sharing-data-between-two-controllers-through-a-service\\\/#listItem\",\"name\":\"AngularJS: Sharing Data between two controllers through a service\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angularjs-sharing-data-between-two-controllers-through-a-service\\\/#listItem\",\"position\":3,\"name\":\"AngularJS: Sharing Data between two controllers through a service\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/angular\\\/#listItem\",\"name\":\"AngularJS\"}}]},{\"@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\\\/suroor\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/suroor\\\/\",\"name\":\"Suroor Wijdan\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angularjs-sharing-data-between-two-controllers-through-a-service\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be5119c6186fc861966771aedc6388b9ed629f481b1944673d6d861ae88f7d3b?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Suroor Wijdan\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angularjs-sharing-data-between-two-controllers-through-a-service\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angularjs-sharing-data-between-two-controllers-through-a-service\\\/\",\"name\":\"AngularJS: Sharing Data between two controllers through a service | TO THE NEW Blog\",\"description\":\"The topic of this post is quite confusing for many developers as they face problems in identifying the best practice to share data between controllers in AngularJS. Some of the articles out there tell to use $rootScope but that's not the correct approach to enable this functionality. A more cleaner and better way of doing so is\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angularjs-sharing-data-between-two-controllers-through-a-service\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/suroor\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/suroor\\\/#author\"},\"datePublished\":\"2013-03-13T18:41:20+05:30\",\"dateModified\":\"2017-08-03T14:03:44+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":"AngularJS: Sharing Data between two controllers through a service | TO THE NEW Blog","description":"The topic of this post is quite confusing for many developers as they face problems in identifying the best practice to share data between controllers in AngularJS. Some of the articles out there tell to use $rootScope but that's not the correct approach to enable this functionality. A more cleaner and better way of doing so is","canonical_url":"https:\/\/2thenew.today\/blog\/angularjs-sharing-data-between-two-controllers-through-a-service\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.today\/blog\/angularjs-sharing-data-between-two-controllers-through-a-service\/#article","name":"AngularJS: Sharing Data between two controllers through a service | TO THE NEW Blog","headline":"AngularJS: Sharing Data between two controllers through a service","author":{"@id":"https:\/\/2thenew.today\/blog\/author\/suroor\/#author"},"publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"},"datePublished":"2013-03-13T18:41:20+05:30","dateModified":"2017-08-03T14:03:44+05:30","inLanguage":"en-US","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/2thenew.today\/blog\/angularjs-sharing-data-between-two-controllers-through-a-service\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/angularjs-sharing-data-between-two-controllers-through-a-service\/#webpage"},"articleSection":"AngularJS, Front End Development, angular development, AngularJS, AngularJS Development Company, controllers, shared service"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.today\/blog\/angularjs-sharing-data-between-two-controllers-through-a-service\/#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\/angular\/#listItem","name":"AngularJS"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/angular\/#listItem","position":2,"name":"AngularJS","item":"https:\/\/2thenew.today\/blog\/category\/angular\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/angularjs-sharing-data-between-two-controllers-through-a-service\/#listItem","name":"AngularJS: Sharing Data between two controllers through a service"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/angularjs-sharing-data-between-two-controllers-through-a-service\/#listItem","position":3,"name":"AngularJS: Sharing Data between two controllers through a service","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/angular\/#listItem","name":"AngularJS"}}]},{"@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\/suroor\/#author","url":"https:\/\/2thenew.today\/blog\/author\/suroor\/","name":"Suroor Wijdan","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.today\/blog\/angularjs-sharing-data-between-two-controllers-through-a-service\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/be5119c6186fc861966771aedc6388b9ed629f481b1944673d6d861ae88f7d3b?s=96&d=mm&r=g","width":96,"height":96,"caption":"Suroor Wijdan"}},{"@type":"WebPage","@id":"https:\/\/2thenew.today\/blog\/angularjs-sharing-data-between-two-controllers-through-a-service\/#webpage","url":"https:\/\/2thenew.today\/blog\/angularjs-sharing-data-between-two-controllers-through-a-service\/","name":"AngularJS: Sharing Data between two controllers through a service | TO THE NEW Blog","description":"The topic of this post is quite confusing for many developers as they face problems in identifying the best practice to share data between controllers in AngularJS. Some of the articles out there tell to use $rootScope but that's not the correct approach to enable this functionality. A more cleaner and better way of doing so is","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.today\/blog\/angularjs-sharing-data-between-two-controllers-through-a-service\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.today\/blog\/author\/suroor\/#author"},"creator":{"@id":"https:\/\/2thenew.today\/blog\/author\/suroor\/#author"},"datePublished":"2013-03-13T18:41:20+05:30","dateModified":"2017-08-03T14:03:44+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":"article","og:title":"AngularJS: Sharing Data between two controllers through a service | TO THE NEW Blog","og:description":"The topic of this post is quite confusing for many developers as they face problems in identifying the best practice to share data between controllers in AngularJS. Some of the articles out there tell to use $rootScope but that's not the correct approach to enable this functionality. A more cleaner and better way of doing so is","og:url":"https:\/\/2thenew.today\/blog\/angularjs-sharing-data-between-two-controllers-through-a-service\/","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","article:tag":{"0":"angularjs","1":"front end development","2":"angular development","4":"angularjs development company","5":"controllers","6":"shared service"},"article:published_time":"2013-03-13T13:11:20+00:00","article:modified_time":"2017-08-03T08:33:44+00:00","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"AngularJS: Sharing Data between two controllers through a service | TO THE NEW Blog","twitter:description":"The topic of this post is quite confusing for many developers as they face problems in identifying the best practice to share data between controllers in AngularJS. Some of the articles out there tell to use $rootScope but that's not the correct approach to enable this functionality. A more cleaner and better way of doing so is","twitter:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"9890","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"article","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:39:58","updated":"2024-02-29 09:33:28","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\/angular\/\" title=\"AngularJS\">AngularJS<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tAngularJS: Sharing Data between two controllers through a service\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.today\/blog"},{"label":"AngularJS","link":"https:\/\/2thenew.today\/blog\/category\/angular\/"},{"label":"AngularJS: Sharing Data between two controllers through a service","link":"https:\/\/2thenew.today\/blog\/angularjs-sharing-data-between-two-controllers-through-a-service\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/9890","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\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/comments?post=9890"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/9890\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/media?parent=9890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/categories?post=9890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/tags?post=9890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}