{"id":5708,"date":"2023-10-26T11:06:59","date_gmt":"2023-10-26T15:06:59","guid":{"rendered":"https:\/\/ionic.io\/blog\/?p=5708"},"modified":"2023-10-26T11:07:03","modified_gmt":"2023-10-26T15:07:03","slug":"announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0","status":"publish","type":"post","link":"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0","title":{"rendered":"Announcing Support for Form-Associated Custom Elements in Stencil v4.5.0"},"content":{"rendered":"\n<p>We\u2019re happy to announce that as of version 4.5.0, Stencil now has support for building form-associated custom elements! \ud83c\udf89 This new feature allows you to build rich, new user experiences leveraging form-related functionality that\u2019s already built-in to the browser, like validation, accessibility, and more.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">What are form-associated custom elements?<\/h2>\n\n\n\n<p>The browser comes out-of-the-box with several form controls that you can use to declaratively build out a form without having to manually wire anything up. You just nest your <code>&lt;input&gt;<\/code>, <code>&lt;select&gt;<\/code>, and <code>&lt;textarea&gt;<\/code> elements inside a <code>&lt;form&gt;<\/code> element and the values from those inputs will be automatically bundled up together. These inputs can also report whether they are in a valid or invalid state, they can be labeled for accessibility, and more.<\/p>\n\n\n\n<p>With form-associated custom elements and the <code>ElementInternals<\/code> interface, these built-in browser features are opened up to web component developers, who can use them to build custom elements which participate in form elements in a rich way, just like the inputs already shipped by the browser.<\/p>\n\n\n\n<p>If you want to learn more about form-associated custom elements, check out <a href=\"https:\/\/webkit.org\/blog\/13711\/elementinternals-and-form-associated-custom-elements\/\">this blog post from the WebKit team<\/a>, <a href=\"https:\/\/web.dev\/articles\/more-capable-form-controls\">this article from web.dev<\/a>, or read through the <a href=\"https:\/\/html.spec.whatwg.org\/#form-associated-custom-element\">WHATWG specification<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Show me an example!<\/h2>\n\n\n\n<p>To bring support for form-associated custom elements to Stencil we\u2019re adding two things: a new option, <code>formAssociated<\/code>, for the <code>@Component<\/code> decorator, and a new decorator, <code>@AttachInternals<\/code>, which will give you access to the <code>ElementInternals<\/code> for your component.<\/p>\n\n\n\n<p>A Stencil component using this API to implement a custom text input could look<\/p>\n\n\n\n<p>like this:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-typescript\">import { AttachInternals, Component, h, State } from &#039;@stencil\/core&#039;;\n\n@Component({\n  tag: &#039;custom-text-input&#039;,\n  shadow: true,\n  formAssociated: true\n})\nexport class CustomTextInput {\n  @State() value: string;\n\n  @AttachInternals() internals: ElementInternals;\n\n  handleChange(event) {\n    this.value = event.target.value;\n    this.internals.setFormValue(event.target.value);\n  }\n\n  componentWillLoad() {\n    this.internals.setFormValue(&quot;a default value&quot;);\n  }\n\n  render() {\n    return (\n      &lt;input\n        type=&quot;text&quot;\n        value={this.value}\n        onInput={(event) =&gt; this.handleChange(event)}\n      \/&gt;\n    )\n  }\n}<\/code><\/pre>\n\n\n\n<p>If this component is rendered within a <code>&lt;form&gt;<\/code> element like so:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-xml\">&lt;form&gt;\n  &lt;custom-text-input name=&quot;my-custom-input&quot;&gt;&lt;\/custom-text-input&gt;\n&lt;\/form&gt;<\/code><\/pre>\n\n\n\n<p>Then it will automatically be linked up to the surrounding form, and the <code>ElementInternals<\/code> object found at <code>this.internals<\/code> will have methods on it for interacting with that form and accessing key information.<\/p>\n\n\n\n<p>In our <code>&lt;custom-text-input&gt;<\/code> example above, we use the <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/ElementInternals\/setFormValue\"><code>setFormValue<\/code><\/a> method to set a value in the surrounding form. This will read the <code>name<\/code> attribute on the element and use it when setting the value, so the value typed by a user into the <code>input<\/code> will be added to the form under the <code>&quot;my-custom-input&quot;<\/code> name.<\/p>\n\n\n\n<p>With the above example, you could demonstrate this by printing the form data like so:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-typescript\">const form = document.querySelector(&quot;form&quot;);\nconst formData = new FormData(form);\n\nconsole.log(&quot;~~ current form state ~~&quot;)\nfor (let entry of formData.entries()) {\n  console.log(`${entry[0]}: ${entry[1]}`);\n}<\/code><\/pre>\n\n\n\n<p>This example just scratches the surface, and a great deal more is possible with the <code>ElementInternals<\/code> API, including <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/ElementInternals\/setValidity\">setting the element&#8217;s validity<\/a>, reading the validity state of the form, reading other form values, and more.<\/p>\n\n\n\n<p>This feature brings a lot of functionality to Stencil components that interact with forms and we can&#8217;t wait to see what you build with it!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We\u2019re happy to announce that as of version 4.5.0, Stencil now has support for building form-associated custom elements!<\/p>\n","protected":false},"author":106,"featured_media":5720,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"publish_to_discourse":"1","publish_post_category":"21","wpdc_auto_publish_overridden":"","wpdc_topic_tags":"","wpdc_pin_topic":"","wpdc_pin_until":"","discourse_post_id":"569525","discourse_permalink":"http:\/\/forum.ionicframework.com\/t\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0\/237264","wpdc_publishing_response":"success","wpdc_publishing_error":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1,120,223],"tags":[76],"class_list":["post-5708","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-all","category-announcements","category-stencil","tag-stencil"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v23.0 (Yoast SEO v23.0) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Announcing Support for Form-Associated Custom Elements in Stencil v4.5.0 - Ionic Blog<\/title>\n<meta name=\"description\" content=\"We\u2019re happy to announce that as of version 4.5.0, Stencil now has support for building form-associated custom elements!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Announcing Support for Form-Associated Custom Elements in Stencil v4.5.0\" \/>\n<meta property=\"og:description\" content=\"We\u2019re happy to announce that as of version 4.5.0, Stencil now has support for building form-associated custom elements!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0\" \/>\n<meta property=\"og:site_name\" content=\"Ionic Blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-26T15:06:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-26T15:07:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2023\/10\/stencilform-feature-image.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2240\" \/>\n\t<meta property=\"og:image:height\" content=\"1120\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Stencil Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ionicframework\" \/>\n<meta name=\"twitter:site\" content=\"@ionicframework\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Stencil Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0#article\",\"isPartOf\":{\"@id\":\"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0\"},\"author\":{\"name\":\"Stencil Team\",\"@id\":\"https:\/\/ionic.io\/blog\/#\/schema\/person\/82fcd9aa19604364f3c30a946de8e646\"},\"headline\":\"Announcing Support for Form-Associated Custom Elements in Stencil v4.5.0\",\"datePublished\":\"2023-10-26T15:06:59+00:00\",\"dateModified\":\"2023-10-26T15:07:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0\"},\"wordCount\":419,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/ionic.io\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0#primaryimage\"},\"thumbnailUrl\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2023\/10\/stencilform-feature-image.png\",\"keywords\":[\"stencil\"],\"articleSection\":[\"All\",\"Announcements\",\"Stencil\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0\",\"url\":\"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0\",\"name\":\"Announcing Support for Form-Associated Custom Elements in Stencil v4.5.0 - Ionic Blog\",\"isPartOf\":{\"@id\":\"https:\/\/ionic.io\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0#primaryimage\"},\"image\":{\"@id\":\"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0#primaryimage\"},\"thumbnailUrl\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2023\/10\/stencilform-feature-image.png\",\"datePublished\":\"2023-10-26T15:06:59+00:00\",\"dateModified\":\"2023-10-26T15:07:03+00:00\",\"description\":\"We\u2019re happy to announce that as of version 4.5.0, Stencil now has support for building form-associated custom elements!\",\"breadcrumb\":{\"@id\":\"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0#primaryimage\",\"url\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2023\/10\/stencilform-feature-image.png\",\"contentUrl\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2023\/10\/stencilform-feature-image.png\",\"width\":2240,\"height\":1120},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ionic.io\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Announcing Support for Form-Associated Custom Elements in Stencil v4.5.0\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ionic.io\/blog\/#website\",\"url\":\"https:\/\/ionic.io\/blog\/\",\"name\":\"ionic.io\/blog\",\"description\":\"Build amazing native and progressive web apps with the web\",\"publisher\":{\"@id\":\"https:\/\/ionic.io\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ionic.io\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/ionic.io\/blog\/#organization\",\"name\":\"Ionic\",\"url\":\"https:\/\/ionic.io\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ionic.io\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/white-on-color.png\",\"contentUrl\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/white-on-color.png\",\"width\":1920,\"height\":854,\"caption\":\"Ionic\"},\"image\":{\"@id\":\"https:\/\/ionic.io\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/ionicframework\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ionic.io\/blog\/#\/schema\/person\/82fcd9aa19604364f3c30a946de8e646\",\"name\":\"Stencil Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ionic.io\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2023\/05\/stencil-white-on-color-150x150.png\",\"contentUrl\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2023\/05\/stencil-white-on-color-150x150.png\",\"caption\":\"Stencil Team\"},\"url\":\"https:\/\/ionic.io\/blog\/author\/stencil\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Announcing Support for Form-Associated Custom Elements in Stencil v4.5.0 - Ionic Blog","description":"We\u2019re happy to announce that as of version 4.5.0, Stencil now has support for building form-associated custom elements!","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:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0","og_locale":"en_US","og_type":"article","og_title":"Announcing Support for Form-Associated Custom Elements in Stencil v4.5.0","og_description":"We\u2019re happy to announce that as of version 4.5.0, Stencil now has support for building form-associated custom elements!","og_url":"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0","og_site_name":"Ionic Blog","article_published_time":"2023-10-26T15:06:59+00:00","article_modified_time":"2023-10-26T15:07:03+00:00","og_image":[{"width":2240,"height":1120,"url":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2023\/10\/stencilform-feature-image.png","type":"image\/png"}],"author":"Stencil Team","twitter_card":"summary_large_image","twitter_creator":"@ionicframework","twitter_site":"@ionicframework","twitter_misc":{"Written by":"Stencil Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0#article","isPartOf":{"@id":"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0"},"author":{"name":"Stencil Team","@id":"https:\/\/ionic.io\/blog\/#\/schema\/person\/82fcd9aa19604364f3c30a946de8e646"},"headline":"Announcing Support for Form-Associated Custom Elements in Stencil v4.5.0","datePublished":"2023-10-26T15:06:59+00:00","dateModified":"2023-10-26T15:07:03+00:00","mainEntityOfPage":{"@id":"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0"},"wordCount":419,"commentCount":0,"publisher":{"@id":"https:\/\/ionic.io\/blog\/#organization"},"image":{"@id":"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0#primaryimage"},"thumbnailUrl":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2023\/10\/stencilform-feature-image.png","keywords":["stencil"],"articleSection":["All","Announcements","Stencil"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0","url":"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0","name":"Announcing Support for Form-Associated Custom Elements in Stencil v4.5.0 - Ionic Blog","isPartOf":{"@id":"https:\/\/ionic.io\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0#primaryimage"},"image":{"@id":"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0#primaryimage"},"thumbnailUrl":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2023\/10\/stencilform-feature-image.png","datePublished":"2023-10-26T15:06:59+00:00","dateModified":"2023-10-26T15:07:03+00:00","description":"We\u2019re happy to announce that as of version 4.5.0, Stencil now has support for building form-associated custom elements!","breadcrumb":{"@id":"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0#primaryimage","url":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2023\/10\/stencilform-feature-image.png","contentUrl":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2023\/10\/stencilform-feature-image.png","width":2240,"height":1120},{"@type":"BreadcrumbList","@id":"https:\/\/ionic.io\/blog\/announcing-support-for-form-associated-custom-elements-in-stencil-v4-5-0#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ionic.io\/blog"},{"@type":"ListItem","position":2,"name":"Announcing Support for Form-Associated Custom Elements in Stencil v4.5.0"}]},{"@type":"WebSite","@id":"https:\/\/ionic.io\/blog\/#website","url":"https:\/\/ionic.io\/blog\/","name":"ionic.io\/blog","description":"Build amazing native and progressive web apps with the web","publisher":{"@id":"https:\/\/ionic.io\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ionic.io\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ionic.io\/blog\/#organization","name":"Ionic","url":"https:\/\/ionic.io\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ionic.io\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/white-on-color.png","contentUrl":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/white-on-color.png","width":1920,"height":854,"caption":"Ionic"},"image":{"@id":"https:\/\/ionic.io\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/ionicframework"]},{"@type":"Person","@id":"https:\/\/ionic.io\/blog\/#\/schema\/person\/82fcd9aa19604364f3c30a946de8e646","name":"Stencil Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ionic.io\/blog\/#\/schema\/person\/image\/","url":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2023\/05\/stencil-white-on-color-150x150.png","contentUrl":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2023\/05\/stencil-white-on-color-150x150.png","caption":"Stencil Team"},"url":"https:\/\/ionic.io\/blog\/author\/stencil"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2023\/10\/stencilform-feature-image.png","_links":{"self":[{"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/posts\/5708","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/users\/106"}],"replies":[{"embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/comments?post=5708"}],"version-history":[{"count":3,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/posts\/5708\/revisions"}],"predecessor-version":[{"id":5722,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/posts\/5708\/revisions\/5722"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/media\/5720"}],"wp:attachment":[{"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/media?parent=5708"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/categories?post=5708"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/tags?post=5708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}