{"id":2486,"date":"2016-06-10T12:14:15","date_gmt":"2016-06-10T10:14:15","guid":{"rendered":"https:\/\/www.angulararchitects.io\/?p=2486"},"modified":"2016-06-10T12:14:15","modified_gmt":"2016-06-10T10:14:15","slug":"writing-custom-form-controls-for-angular-2-en","status":"publish","type":"post","link":"https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/","title":{"rendered":"Writing Custom Form Controls For Angular 2 [EN]"},"content":{"rendered":"<div class=\"article\">\n<blockquote><p>\nUpdate in January 2017: This article has been updated for the final API of Angular 2.x.\n<\/p><\/blockquote>\n<p>If you want your components to work with <a href=\"https:\/\/angular.io\/docs\/ts\/latest\/guide\/forms.html\">declarative (template-driven)<\/a> and imperative forms, you have to implement the interface <a href=\"https:\/\/angular.io\/docs\/ts\/latest\/api\/common\/index\/ControlValueAccessor-interface.html\"><code>ControlValueAccessor<\/code><\/a>. The methods defined by this interface permit Angular 2 to read and set the state of the control in question.<\/p>\n<p>Such controls can be used with <code>ngModel<\/code> or <code>ngControl<\/code>. To illustrate this, the following example uses a custom <code>date-control<\/code> that binds a variable <code>date<\/code> with <code>ngModel<\/code>:<\/p>\n<pre><code>&lt;!-- Deklaratives (template-driven) Forms-Handling \n&lt;date-control [(ngModel)]=\"date\"&gt;&lt;\/date-control&gt;\n<\/code><\/pre>\n<p>Alternatively, such a component can use imperative forms to bind to a predefined <code>Control<\/code>-object. The following example illustrates this by binding the <code>date-control<\/code> with <code>formControlName<\/code> to the <code>FormControl<\/code> with the name <code>date<\/code>. Angular expects this Control-object in the <code>FormGroup<\/code> that has been specified with <code>formGroup<\/code>:<\/p>\n<pre><code>&lt;!-- Imperatives Forms-Handling --&gt;\n&lt;form [formGroup]=\"filter\"&gt;   \n    &lt;date-control formControlName=\"date\"&gt;&lt;\/date-control&gt;\n    [...]\n&lt;\/form&gt;\n<\/code><\/pre>\n<p>The <code>ControlGroup<\/code> and the <code>Control<\/code> are provided via the component:<\/p>\n<pre><code>@Component({\n    selector: 'flight-search',  \n    template: require('.\/flight-search.component.html'),\n    directives: [DateControlComponent]\n})\nexport class FlightSearchImpComponent {\n\n    public filter: FormGroup;\n\n    constructor(private fb: FormBuilder) {\n\n        this.filter = fb.group({\n           date: ['2016-05-01']\n        });\n    }\n\n    [...]\n}\n<\/code><\/pre>\n<p>This article describes the steps necessary to implement <code>ControlValueAccessor<\/code>. The <a href=\"https:\/\/github.com\/manfredsteyer\/angular2-rc1-forms\">total sample<\/a> can be found <a href=\"https:\/\/github.com\/manfredsteyer\/angular2-rc1-forms\">here<\/a>.<\/p>\n<h2>ControlValueAccessor<\/h2>\n<p>The interface <code>ControlValueAccessor<\/code> provides three methods for synchronizing the state of a control with the object graph Angular uses to represent a form:<\/p>\n<pre><code>\/\/\n\/\/ From the Angular2-Sources\n\/\/\nexport interface ControlValueAccessor {\n    writeValue(obj: any): void;\n    registerOnChange(fn: any): void;\n    registerOnTouched(fn: any): void;\n}\n<\/code><\/pre>\n<p>To write a value to the control, Angular uses the method <code>writeValue<\/code>. Since Angular must know about changes to the date, the SPA-flagship uses <code>registerOnChange<\/code> and <code>registerOnTouched<\/code> to register callbacks. The control has to call the first one, when the users changes the state. The latter one indicates that the field at least had the focus.<\/p>\n<h2>Implementing ControlValueAccessor<\/h2>\n<p>The following example demonstrates the implementation of the interface <code>ControlValueAccessor<\/code>. For this, it shows a simple component for editing dates. The method <code>splitDate<\/code> takes a date and breaks it down into its parts, which are offered for editing by the (here not shown) template. The method <code>apply<\/code> is putting those together to a date again.<\/p>\n<pre><code>import { Component } from '@angular\/core';\nimport { ControlValueAccessor, NgControl } from '@angular\/forms';\n\n@Component({\n    selector: 'date-control',\n    template: require('.\/date-control.component.html')\n})\nexport class DateControlComponent \n                    implements ControlValueAccessor {\n\n    day: number;\n    month: number;\n    year: number;\n    hour: number;\n    minute: number;\n\n    constructor(private c: NgControl) {\n        c.valueAccessor = this;\n    }\n\n    writeValue(value: any) {\n        this.splitDate(value);\n    }\n\n    onChange = (_) =&gt; {};\n    onTouched = () =&gt; {};\n\n    registerOnChange(fn): void { this.onChange = fn; }\n    registerOnTouched(fn): void { this.onTouched = fn; }\n\n    splitDate(dateString) {\n      var date = new Date(dateString); \n\n      this.day = date.getDate();\n      this.month = date.getMonth() + 1;\n      this.year = date.getFullYear();\n      this.hour = date.getHours();\n      this.minute = date.getMinutes();\n    }\n\n    apply() {\n\n        var date = new Date();\n        date.setDate(this.day);\n        date.setMonth(this.month - 1);\n        date.setFullYear(this.year);\n        date.setHours(this.hour);\n        date.setMinutes(this.minute);\n        date.setSeconds(0);\n        date.setMilliseconds(0);\n\n        this.onChange(date.toISOString());\n        this.onTouched();\n    }\n\n}\n<\/code><\/pre>\n<p>To be able to interact with the Forms-Handling of Angular 2, the component implements the interface <code>ControlValueAccessor<\/code>. In addition, it gets the current <code>NgControl<\/code> by the means of Dependency Injection. Angular uses this instance to represent the control within the object graph that has been created for the form. It sets the property <code>ValueAccessor<\/code> to the component itself. This means, that the component is it's own <code>ValueAccessor<\/code>.<\/p>\n<p>The implementation of <code>writeValue<\/code> takes a new value from the framework and delegates it to <code>splitDate<\/code>. The implementations of <code>registerOnChange<\/code> and <code>registerOnTouched<\/code> however take callbacks from Angular and puts them into <code>onChange<\/code> and <code>onTouched<\/code>.<\/p>\n<p>After the date has been changed, the template invokes the method <code>apply<\/code>. It adds the individual parts of the date together and passes it to Angular using <code>onChange<\/code>. In addition, for the sake of completeness, it executes the calback <code>onTouched<\/code>.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Writing Custom Form Controls For Angular 2 [EN]<\/p>\n","protected":false},"author":9,"featured_media":2997,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_price":"","_stock":"","_tribe_ticket_header":"","_tribe_default_ticket_provider":"","_ticket_start_date":"","_ticket_end_date":"","_tribe_ticket_show_description":"","_tribe_ticket_show_not_going":false,"_tribe_ticket_use_global_stock":"","_tribe_ticket_global_stock_level":"","_global_stock_mode":"","_global_stock_cap":"","_tribe_rsvp_for_event":"","_tribe_ticket_going_count":"","_tribe_ticket_not_going_count":"","_tribe_tickets_list":"[]","_tribe_ticket_has_attendee_info_fields":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2486","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-unkategorisiert"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Writing Custom Form Controls For Angular 2 [EN] - ANGULARarchitects<\/title>\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.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Writing Custom Form Controls For Angular 2 [EN] - ANGULARarchitects\" \/>\n<meta property=\"og:description\" content=\"Writing Custom Form Controls For Angular 2 [EN]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/\" \/>\n<meta property=\"og:site_name\" content=\"ANGULARarchitects\" \/>\n<meta property=\"article:published_time\" content=\"2016-06-10T10:14:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.angulararchitects.io\/wp-content\/uploads\/2019\/04\/blog-2355684-1280.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"853\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Manfred Steyer, GDE\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@daniel\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Manfred Steyer, GDE\" \/>\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:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/\"},\"author\":{\"name\":\"Manfred Steyer, GDE\",\"@id\":\"https:\/\/www.angulararchitects.io\/en\/#\/schema\/person\/15628efa7af4475ffaaeeb26c5112951\"},\"headline\":\"Writing Custom Form Controls For Angular 2 [EN]\",\"datePublished\":\"2016-06-10T10:14:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/\"},\"wordCount\":401,\"publisher\":{\"@id\":\"https:\/\/www.angulararchitects.io\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.angulararchitects.io\/wp-content\/uploads\/2019\/04\/blog-2355684-1280.jpg\",\"articleSection\":[\"Unkategorisiert\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/\",\"url\":\"https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/\",\"name\":\"Writing Custom Form Controls For Angular 2 [EN] - ANGULARarchitects\",\"isPartOf\":{\"@id\":\"https:\/\/www.angulararchitects.io\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.angulararchitects.io\/wp-content\/uploads\/2019\/04\/blog-2355684-1280.jpg\",\"datePublished\":\"2016-06-10T10:14:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/#primaryimage\",\"url\":\"https:\/\/www.angulararchitects.io\/wp-content\/uploads\/2019\/04\/blog-2355684-1280.jpg\",\"contentUrl\":\"https:\/\/www.angulararchitects.io\/wp-content\/uploads\/2019\/04\/blog-2355684-1280.jpg\",\"width\":1280,\"height\":853},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.angulararchitects.io\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Writing Custom Form Controls For Angular 2 [EN]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.angulararchitects.io\/en\/#website\",\"url\":\"https:\/\/www.angulararchitects.io\/en\/\",\"name\":\"ANGULARarchitects\",\"description\":\"AngularArchitects.io\",\"publisher\":{\"@id\":\"https:\/\/www.angulararchitects.io\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.angulararchitects.io\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.angulararchitects.io\/en\/#organization\",\"name\":\"ANGULARarchitects\",\"alternateName\":\"SOFTWAREarchitects\",\"url\":\"https:\/\/www.angulararchitects.io\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.angulararchitects.io\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.angulararchitects.io\/wp-content\/uploads\/2023\/07\/AA-Logo-RGB-horizontal-inside-knowledge-black.svg\",\"contentUrl\":\"https:\/\/www.angulararchitects.io\/wp-content\/uploads\/2023\/07\/AA-Logo-RGB-horizontal-inside-knowledge-black.svg\",\"width\":644,\"height\":216,\"caption\":\"ANGULARarchitects\"},\"image\":{\"@id\":\"https:\/\/www.angulararchitects.io\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/github.com\/angular-architects\",\"https:\/\/www.linkedin.com\/company\/angular-architects\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.angulararchitects.io\/en\/#\/schema\/person\/15628efa7af4475ffaaeeb26c5112951\",\"name\":\"Manfred Steyer, GDE\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.angulararchitects.io\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a0b59539674d8b71ea1c1f4764b11244b5f499203f1d11b40f37d8f3f90be033?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a0b59539674d8b71ea1c1f4764b11244b5f499203f1d11b40f37d8f3f90be033?s=96&d=mm&r=g\",\"caption\":\"Manfred Steyer, GDE\"},\"sameAs\":[\"https:\/\/x.com\/daniel\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Writing Custom Form Controls For Angular 2 [EN] - ANGULARarchitects","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.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/","og_locale":"en_US","og_type":"article","og_title":"Writing Custom Form Controls For Angular 2 [EN] - ANGULARarchitects","og_description":"Writing Custom Form Controls For Angular 2 [EN]","og_url":"https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/","og_site_name":"ANGULARarchitects","article_published_time":"2016-06-10T10:14:15+00:00","og_image":[{"width":1280,"height":853,"url":"https:\/\/www.angulararchitects.io\/wp-content\/uploads\/2019\/04\/blog-2355684-1280.jpg","type":"image\/jpeg"}],"author":"Manfred Steyer, GDE","twitter_card":"summary_large_image","twitter_creator":"@daniel","twitter_misc":{"Written by":"Manfred Steyer, GDE","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/#article","isPartOf":{"@id":"https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/"},"author":{"name":"Manfred Steyer, GDE","@id":"https:\/\/www.angulararchitects.io\/en\/#\/schema\/person\/15628efa7af4475ffaaeeb26c5112951"},"headline":"Writing Custom Form Controls For Angular 2 [EN]","datePublished":"2016-06-10T10:14:15+00:00","mainEntityOfPage":{"@id":"https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/"},"wordCount":401,"publisher":{"@id":"https:\/\/www.angulararchitects.io\/en\/#organization"},"image":{"@id":"https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/#primaryimage"},"thumbnailUrl":"https:\/\/www.angulararchitects.io\/wp-content\/uploads\/2019\/04\/blog-2355684-1280.jpg","articleSection":["Unkategorisiert"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/","url":"https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/","name":"Writing Custom Form Controls For Angular 2 [EN] - ANGULARarchitects","isPartOf":{"@id":"https:\/\/www.angulararchitects.io\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/#primaryimage"},"image":{"@id":"https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/#primaryimage"},"thumbnailUrl":"https:\/\/www.angulararchitects.io\/wp-content\/uploads\/2019\/04\/blog-2355684-1280.jpg","datePublished":"2016-06-10T10:14:15+00:00","breadcrumb":{"@id":"https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/#primaryimage","url":"https:\/\/www.angulararchitects.io\/wp-content\/uploads\/2019\/04\/blog-2355684-1280.jpg","contentUrl":"https:\/\/www.angulararchitects.io\/wp-content\/uploads\/2019\/04\/blog-2355684-1280.jpg","width":1280,"height":853},{"@type":"BreadcrumbList","@id":"https:\/\/www.angulararchitects.io\/en\/blog\/writing-custom-form-controls-for-angular-2-en\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.angulararchitects.io\/en\/"},{"@type":"ListItem","position":2,"name":"Writing Custom Form Controls For Angular 2 [EN]"}]},{"@type":"WebSite","@id":"https:\/\/www.angulararchitects.io\/en\/#website","url":"https:\/\/www.angulararchitects.io\/en\/","name":"ANGULARarchitects","description":"AngularArchitects.io","publisher":{"@id":"https:\/\/www.angulararchitects.io\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.angulararchitects.io\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.angulararchitects.io\/en\/#organization","name":"ANGULARarchitects","alternateName":"SOFTWAREarchitects","url":"https:\/\/www.angulararchitects.io\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.angulararchitects.io\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.angulararchitects.io\/wp-content\/uploads\/2023\/07\/AA-Logo-RGB-horizontal-inside-knowledge-black.svg","contentUrl":"https:\/\/www.angulararchitects.io\/wp-content\/uploads\/2023\/07\/AA-Logo-RGB-horizontal-inside-knowledge-black.svg","width":644,"height":216,"caption":"ANGULARarchitects"},"image":{"@id":"https:\/\/www.angulararchitects.io\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/github.com\/angular-architects","https:\/\/www.linkedin.com\/company\/angular-architects\/"]},{"@type":"Person","@id":"https:\/\/www.angulararchitects.io\/en\/#\/schema\/person\/15628efa7af4475ffaaeeb26c5112951","name":"Manfred Steyer, GDE","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.angulararchitects.io\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a0b59539674d8b71ea1c1f4764b11244b5f499203f1d11b40f37d8f3f90be033?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a0b59539674d8b71ea1c1f4764b11244b5f499203f1d11b40f37d8f3f90be033?s=96&d=mm&r=g","caption":"Manfred Steyer, GDE"},"sameAs":["https:\/\/x.com\/daniel"]}]}},"_links":{"self":[{"href":"https:\/\/www.angulararchitects.io\/en\/wp-json\/wp\/v2\/posts\/2486","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.angulararchitects.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.angulararchitects.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.angulararchitects.io\/en\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.angulararchitects.io\/en\/wp-json\/wp\/v2\/comments?post=2486"}],"version-history":[{"count":0,"href":"https:\/\/www.angulararchitects.io\/en\/wp-json\/wp\/v2\/posts\/2486\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.angulararchitects.io\/en\/wp-json\/wp\/v2\/media\/2997"}],"wp:attachment":[{"href":"https:\/\/www.angulararchitects.io\/en\/wp-json\/wp\/v2\/media?parent=2486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.angulararchitects.io\/en\/wp-json\/wp\/v2\/categories?post=2486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.angulararchitects.io\/en\/wp-json\/wp\/v2\/tags?post=2486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}