{"id":12988,"date":"2014-04-15T18:51:17","date_gmt":"2014-04-15T13:21:17","guid":{"rendered":"https:\/\/2thenew.today\/blog\/?p=12988"},"modified":"2017-08-03T16:01:32","modified_gmt":"2017-08-03T10:31:32","slug":"component-in-angularjs","status":"publish","type":"post","link":"https:\/\/2thenew.today\/blog\/component-in-angularjs\/","title":{"rendered":"Component in AngularJS"},"content":{"rendered":"<p>When we are working on front-end part, then many times we face a situation where same HTML repeats on the same page or different pages, at that time we think of making that HTML a component. When <a title=\"AngularJS Development Company\" href=\"https:\/\/2thenew.today\/front-end-angularjs-development\">using AngularJS framework<\/a>, we can easily make <strong>components<\/strong> with the help of <strong>directives<\/strong>. Let&#8217;s quickly understand what a <strong>directive<\/strong> is?<br \/>\nA <a href=\"https:\/\/2thenew.today\/blog\/angularjs-getting-started-with-directives\/\">directive<\/a> is a marker on DOM element, which tells <a title=\"Intuitive Frontend Interfaces with AngularJS\" href=\"https:\/\/2thenew.today\/blog\/building-intuitive-frontend-interfaces-with-angularjs\/\">AngularJS to bind a specified behavior<\/a> to the DOM element and its children elements. <strong>AngularJS<\/strong> itself provides many built-in <strong>directives<\/strong> e.g. <strong>ngRepeat<\/strong>, <strong>ngShow<\/strong>, <strong>ngModel<\/strong> etc. <strong>AngularJS<\/strong> is case-sensitive while html is case-insensitive, so defining a <strong>directive<\/strong> with <strong>AngularJS<\/strong> and using a <strong>directive<\/strong> with html have a slightly different signature. Let&#8217;s see a very commonly used <strong>directive<\/strong> <strong>ngModel<\/strong>:<\/p>\n<p>[js]<\/p>\n<p>[\/js]<\/p>\n<p>We have marked <strong>ngModel<\/strong> <strong>directive<\/strong> to DOM element (input). We are using <strong>directive<\/strong> on html as &#8216;<strong>ng-model<\/strong>&#8216; (small letters with dash\/minus as delimiter for camelCase words) while its actually defined with <strong>AngularJS<\/strong> as <strong>ngModel<\/strong>. Now let&#8217;s create a simple custom <strong>directive<\/strong> (We define a <strong>directory<\/strong> to register it with <strong>module<\/strong> via <strong>module<\/strong>.<strong>directive<\/strong> API).<\/p>\n<p>[js]<br \/>\nvar directiveTestApp = angular.module(&#8216;directiveTest&#8217;, []);<br \/>\ndirectiveTestApp.directive(&#8216;myTemplate&#8217;, function () { \/\/ Registering myTemplate directive to directiveTest module<br \/>\n    return {<br \/>\n        \/*<br \/>\n         * Restricting a directive by providing a restrict field so that it can  be used as:<br \/>\n         * E stands for Element<br \/>\n         * C stand for Class name<br \/>\n         * M stands for Comment<br \/>\n         * A stands for Attribute<br \/>\n         * Here we are defining directive with all the types, if we don&#8217;t provide restrict field then default value is<br \/>\n         * &#8216;A&#8217; means directive can be used as attribute only.<br \/>\n         * *\/<br \/>\n        restrict: &quot;ECMA&quot;, \/\/ directive can be used as attribute, element, class or comment.<br \/>\n        replace: true, \/\/ replace indicates that we want to replace whole div or only inner HTML, default value is false.<br \/>\n        template: &quot;&lt;\/pre&gt;<br \/>\n&lt;div&gt;this is directive template test&lt;\/div&gt;<br \/>\n&lt;pre&gt;<br \/>\n&quot; \/\/ DOM element should be replaced with this.<br \/>\n        \/\/ If you want to provide template content from HTML file use templateUrl option instead of template<br \/>\n    };<br \/>\n});<br \/>\n[\/js]<\/p>\n<p>To define a <strong>directive<\/strong>, we use <strong>module<\/strong>.<strong>directive<\/strong> API, in which first argument is name of <strong>directive<\/strong>, and second argument is function which returns an object with all the options. This function is called at the time of initializing the <strong>directive<\/strong>. Therefore this function is also know as factory function. For the first time when <strong>AngularJS<\/strong> finds the use of <strong>directive<\/strong>, it calls this factory function and stores the results for future use.<\/p>\n<p>We can use <strong>directive<\/strong> on html as attribute, tag element, class name and comment as below:<\/p>\n<p>[js]<br \/>\n1. Attribute Directive:&lt;\/pre&gt;<br \/>\n&lt;div&gt;&lt;\/div&gt;<\/p>\n<p>&lt;hr \/&gt;<\/p>\n<p>&lt;pre&gt;2. Element Directive:&lt;\/pre&gt;<\/p>\n<p>&lt;hr \/&gt;<\/p>\n<p>&lt;pre&gt;3. Class Directive:&lt;\/pre&gt;<br \/>\n&lt;div class=&quot;my-template&quot;&gt;&lt;\/div&gt;<\/p>\n<p>&lt;hr \/&gt;<\/p>\n<p>&lt;pre&gt;4. Comment Directive: &lt;!&#8211; directive: my-template hello &#8211;&gt;&lt;\/pre&gt;<\/p>\n<p>&lt;hr \/&gt;<\/p>\n<p>&lt;pre&gt;[\/js]<\/p>\n<p><strong>NOTE<\/strong>: You can checkout full working source code from this <a href=\"https:\/\/github.com\/AmitThakkar\/AngularDemo\" target=\"_blank\">link<\/a>.<br \/>\n<strong><a href=\"https:\/\/2thenew.today\/blog\/author\/amit-kumar\/\">More Blogs by Me<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When we are working on front-end part, then many times we face a situation where same HTML repeats on the same page or different pages, at that time we think of making that HTML a component. When using AngularJS framework, we can easily make components with the help of directives. Let&#8217;s quickly understand what a [&hellip;]<\/p>\n","protected":false},"author":52,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":3,"footnotes":""},"categories":[1185],"tags":[3955,955,4697,1387,1189,1388],"class_list":["post-12988","post","type-post","status-publish","format-standard","hentry","category-node-js-2","tag-angular-development","tag-angularjs","tag-angularjs-development-company","tag-component","tag-directive","tag-template"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"When we are working on front-end part, then many times we face a situation where same HTML repeats on the same page or different pages, at that time we think of making that HTML a component. When using AngularJS framework, we can easily make components with the help of directives. Let&#039;s quickly understand what a\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Amit Kumar\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.today\/blog\/component-in-angularjs\/\" \/>\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=\"Component in AngularJS | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"When we are working on front-end part, then many times we face a situation where same HTML repeats on the same page or different pages, at that time we think of making that HTML a component. When using AngularJS framework, we can easily make components with the help of directives. Let&#039;s quickly understand what a\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.today\/blog\/component-in-angularjs\/\" \/>\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=\"Component in AngularJS | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"When we are working on front-end part, then many times we face a situation where same HTML repeats on the same page or different pages, at that time we think of making that HTML a component. When using AngularJS framework, we can easily make components with the help of directives. Let&#039;s quickly understand what a\" \/>\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\\\/component-in-angularjs\\\/#article\",\"name\":\"Component in AngularJS | TO THE NEW Blog\",\"headline\":\"Component in AngularJS\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/amit-kumar\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2014-04-15T18:51:17+05:30\",\"dateModified\":\"2017-08-03T16:01:32+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/component-in-angularjs\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/component-in-angularjs\\\/#webpage\"},\"articleSection\":\"Node.js, angular development, AngularJS, AngularJS Development Company, component, Directive, template\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/component-in-angularjs\\\/#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\\\/component-in-angularjs\\\/#listItem\",\"name\":\"Component in AngularJS\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/component-in-angularjs\\\/#listItem\",\"position\":3,\"name\":\"Component in AngularJS\",\"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\\\/amit-kumar\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/amit-kumar\\\/\",\"name\":\"Amit Kumar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/component-in-angularjs\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/859356966acd3c3879759369c7ac72cfb81228287bfc78e99c3080bee9b6b9ba?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Amit Kumar\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/component-in-angularjs\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/component-in-angularjs\\\/\",\"name\":\"Component in AngularJS | TO THE NEW Blog\",\"description\":\"When we are working on front-end part, then many times we face a situation where same HTML repeats on the same page or different pages, at that time we think of making that HTML a component. When using AngularJS framework, we can easily make components with the help of directives. Let's quickly understand what a\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/component-in-angularjs\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/amit-kumar\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/amit-kumar\\\/#author\"},\"datePublished\":\"2014-04-15T18:51:17+05:30\",\"dateModified\":\"2017-08-03T16:01:32+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":"Component in AngularJS | TO THE NEW Blog","description":"When we are working on front-end part, then many times we face a situation where same HTML repeats on the same page or different pages, at that time we think of making that HTML a component. When using AngularJS framework, we can easily make components with the help of directives. Let's quickly understand what a","canonical_url":"https:\/\/2thenew.today\/blog\/component-in-angularjs\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.today\/blog\/component-in-angularjs\/#article","name":"Component in AngularJS | TO THE NEW Blog","headline":"Component in AngularJS","author":{"@id":"https:\/\/2thenew.today\/blog\/author\/amit-kumar\/#author"},"publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"},"datePublished":"2014-04-15T18:51:17+05:30","dateModified":"2017-08-03T16:01:32+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/2thenew.today\/blog\/component-in-angularjs\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/component-in-angularjs\/#webpage"},"articleSection":"Node.js, angular development, AngularJS, AngularJS Development Company, component, Directive, template"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.today\/blog\/component-in-angularjs\/#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\/component-in-angularjs\/#listItem","name":"Component in AngularJS"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/component-in-angularjs\/#listItem","position":3,"name":"Component in AngularJS","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\/amit-kumar\/#author","url":"https:\/\/2thenew.today\/blog\/author\/amit-kumar\/","name":"Amit Kumar","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.today\/blog\/component-in-angularjs\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/859356966acd3c3879759369c7ac72cfb81228287bfc78e99c3080bee9b6b9ba?s=96&d=mm&r=g","width":96,"height":96,"caption":"Amit Kumar"}},{"@type":"WebPage","@id":"https:\/\/2thenew.today\/blog\/component-in-angularjs\/#webpage","url":"https:\/\/2thenew.today\/blog\/component-in-angularjs\/","name":"Component in AngularJS | TO THE NEW Blog","description":"When we are working on front-end part, then many times we face a situation where same HTML repeats on the same page or different pages, at that time we think of making that HTML a component. When using AngularJS framework, we can easily make components with the help of directives. Let's quickly understand what a","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.today\/blog\/component-in-angularjs\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.today\/blog\/author\/amit-kumar\/#author"},"creator":{"@id":"https:\/\/2thenew.today\/blog\/author\/amit-kumar\/#author"},"datePublished":"2014-04-15T18:51:17+05:30","dateModified":"2017-08-03T16:01:32+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":"Component in AngularJS | TO THE NEW Blog","og:description":"When we are working on front-end part, then many times we face a situation where same HTML repeats on the same page or different pages, at that time we think of making that HTML a component. When using AngularJS framework, we can easily make components with the help of directives. Let's quickly understand what a","og:url":"https:\/\/2thenew.today\/blog\/component-in-angularjs\/","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":"Component in AngularJS | TO THE NEW Blog","twitter:description":"When we are working on front-end part, then many times we face a situation where same HTML repeats on the same page or different pages, at that time we think of making that HTML a component. When using AngularJS framework, we can easily make components with the help of directives. Let's quickly understand what a","twitter:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"12988","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 21:19:53","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\tComponent in AngularJS\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":"Component in AngularJS","link":"https:\/\/2thenew.today\/blog\/component-in-angularjs\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/12988","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\/52"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/comments?post=12988"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/12988\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/media?parent=12988"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/categories?post=12988"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/tags?post=12988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}