{"id":278,"date":"2015-01-28T02:00:00","date_gmt":"2015-01-28T02:00:00","guid":{"rendered":"http:\/\/localhost\/?p=278"},"modified":"2017-01-09T06:56:25","modified_gmt":"2017-01-09T06:56:25","slug":"pull-to-refresh-directive","status":"publish","type":"post","link":"https:\/\/ionic.io\/blog\/pull-to-refresh-directive","title":{"rendered":"Understanding Pull to Refresh"},"content":{"rendered":"<p><em>This is a guest post by Andrew McGivery, an application developer with a strong background in<br \/>\nAndroid, AngularJS, Ionic, C#, SQL, and front end development. Andrew writes often about Ionic and how to build great<br \/>\nhybrid apps. Read more on <a href=\"http:\/\/mcgivery.com\/\">Andrew&#8217;s personal blog<\/a><\/em><\/p>\n<p>With the rise of social networks, the &#8220;feed&#8221; has become a popular design pattern, especially in mobile apps. The idea is to load in new items to the top of a feed by pulling down from the top of the list until you see a loading indicator, letting go, and watching as new items magically (not really) add themselves in.<\/p>\n<p>Ionic has an awesome directive that has undergone a redo fairly recently to accomplish exactly this. In this post, we&#8217;ll break down a basic example of using this directive, a list, and the <a href=\"https:\/\/randomuser.me\/\">Random User API<\/a> to see how to use the directive with example data (feel free to follow along <a href=\"http:\/\/codepen.io\/andrewmcgivery\/pen\/ZYyVgp\">on CodePen<\/a>).<\/p>\n<p><!--more--><\/p>\n<h3 id=\"ionrefresherpulltorefreshdirective\">ionRefresher (Pull to Refresh Directive)<\/h3>\n<p>The Ionic directive we are going to use is the <code>ion-refresher<\/code> (<a href=\"http:\/\/ionicframework.com\/docs\/api\/directive\/ionRefresher\/\">Official Documentation<\/a>). The most basic usage is as follows:<\/p>\n<pre><code class=\"language-html\">&lt;ion-refresher on-refresh=&quot;doRefresh()&quot;&gt;&lt;\/ion-refresher&gt;\n<\/code><\/pre>\n<p><code>on-refresh<\/code> should point to a <code>$scope<\/code> function that gets the new data, updates a list, and then lets the refresher know it is done. This refresher should be above some kind of list. <\/p>\n<h3 id=\"view\">View<\/h3>\n<p>For our example, we&#8217;ll be using the following view markup:<\/p>\n<pre><code class=\"html\">&lt;ion-refresher on-refresh=&quot;doRefresh()&quot;&gt;&lt;\/ion-refresher&gt;\n&lt;ion-list&gt;\n  &lt;ion-item class=&quot;item-avatar&quot; ng-repeat=&quot;item in items&quot;&gt;\n    &lt;img src=&quot;{{item.user.picture.thumbnail}} &quot; \/&gt;\n    ## {{item.user.name.first}} {{item.user.name.last}}\n    &lt;p&gt;{{item.user.location.city}} {{item.user.password}}&lt;\/p&gt;\n  &lt;\/ion-item&gt;\n&lt;\/ion-list&gt;\n<\/code><\/pre>\n<p>which looks something like this, once rendered:<\/p>\n<p><img decoding=\"async\" data-src=\"http:\/\/mcgivery.com\/wp-content\/uploads\/2015\/01\/list.png\" alt=\"rendered list\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" class=\"lazyload\"><noscript><img decoding=\"async\" src=\"http:\/\/mcgivery.com\/wp-content\/uploads\/2015\/01\/list.png\" alt=\"rendered list\"><\/noscript><\/p>\n<p>Remember that this list iterates over the <code>$scope.items<\/code> array.<\/p>\n<pre><code class=\"html\">ng-repeat=&quot;item in items&quot;\n<\/code><\/pre>\n<h3 id=\"factory\">Factory<\/h3>\n<p>In our example, we&#8217;re going to be making a call to the Random User API to get some data to play with. To do this, we&#8217;ll create a factory that makes these API calls. This factory will have two methods: <code>GetFeed<\/code> and <code>GetNewUser<\/code>. <code>GetFeed<\/code> will be called when our app loads to get the initial data, and the <code>GetNewUser<\/code> will be called each time we do a pull to refresh.<\/p>\n<pre><code class=\"javascript\">.factory(&#039;PersonService&#039;, function($http){\n  var BASE_URL = &quot;http:\/\/api.randomuser.me\/&quot;;\n  var items = [];\n\n  return {\n    GetFeed: function(){\n      return $http.get(BASE_URL+&#039;?results=10&#039;).then(function(response){\n        items = response.data.results;\n        return items;\n      });\n    },\n    GetNewUser: function(){\n      return $http.get(BASE_URL).then(function(response){\n        items = response.data.results;\n        return items;\n      });\n    }\n  }\n})\n<\/code><\/pre>\n<p>Our <code>GetFeed<\/code> call returns 10 results, and each call to <code>GetNewUser<\/code> returns 1 result.<\/p>\n<h3 id=\"controller\">Controller<\/h3>\n<p>Our controller needs to do 2 things:<\/p>\n<ol>\n<li>Fill the feed with the initial items<\/li>\n<li>Handle the pull to refresh<\/li>\n<\/ol>\n<p>First, to fill our feed, we&#8217;ll want to make a call to the PersonService and assign the result to the <code>$scope.items<\/code> array:<\/p>\n<pre><code class=\"javascript\">.controller(&#039;MyCtrl&#039;, function($scope, $timeout, PersonService) {\n  $scope.items = [];\n\n  PersonService.GetFeed().then(function(items){\n    $scope.items = items;\n  });\n});\n<\/code><\/pre>\n<p>Next, we need to handle the pull to refresh. Recall we configured our directive to call a <code>doRefresh<\/code> function. We&#8217;ll need to define this function:<\/p>\n<pre><code class=\"javascript\">$scope.doRefresh = function() {\n\n}\n<\/code><\/pre>\n<p>In this function, we should call the <code>GetNewUser<\/code> function and add these items to the beginning of the array.<\/p>\n<pre><code class=\"javascript\">$scope.doRefresh = function() {\n  PersonService.GetNewUser().then(function(items){\n    $scope.items = items.concat($scope.items);\n  });\n};\n<\/code><\/pre>\n<p>You&#8217;ll notice we are using the <code>array.concat<\/code> function to add the items in. This is because <code>items<\/code> is an array, so we need to add the two arrays together.<\/p>\n<p>We still need to do one final thing. We need to let the scroller know that we&#8217;re done loading in the new items, so it can hide the loading indicator. To do this, we need to broadcast the <code>scroll.refreshComplete<\/code> event.<\/p>\n<pre><code class=\"javascript\">$scope.doRefresh = function() {\n  PersonService.GetNewUser().then(function(items){\n    $scope.items = items.concat($scope.items);\n\n    \/\/Stop the ion-refresher from spinning\n    $scope.$broadcast(&#039;scroll.refreshComplete&#039;);\n  });\n};\n<\/code><\/pre>\n<p>In its entirety, our controller looks like this:<\/p>\n<pre><code class=\"javascript\">.controller(&#039;MyCtrl&#039;, function($scope, $timeout, PersonService) {\n  $scope.items = [];\n\n  PersonService.GetFeed().then(function(items){\n    $scope.items = items;\n  });\n\n  $scope.doRefresh = function() {\n    PersonService.GetNewUser().then(function(items){\n      $scope.items = items.concat($scope.items);\n\n      \/\/Stop the ion-refresher from spinning\n      $scope.$broadcast(&#039;scroll.refreshComplete&#039;);\n    });\n  };\n\n});\n<\/code><\/pre>\n<h3 id=\"conclusion\">Conclusion<\/h3>\n<p>Using the code above (full code on <a href=\"http:\/\/codepen.io\/andrewmcgivery\/pen\/ZYyVgp\/\">CodePen<\/a>), you can accomplish this common pull to refresh patten in your Ionic Apps. Questions? Feel free to comment below!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a guest post by Andrew McGivery, an application developer with a strong background in Android, AngularJS, Ionic, C#, SQL, and front end development. Andrew writes often about Ionic and how to build great hybrid apps. Read more on Andrew&#8217;s personal blog With the rise of social networks, the &#8220;feed&#8221; has become a popular [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"publish_to_discourse":"","publish_post_category":"","wpdc_auto_publish_overridden":"","wpdc_topic_tags":"","wpdc_pin_topic":"","wpdc_pin_until":"","discourse_post_id":"","discourse_permalink":"","wpdc_publishing_response":"","wpdc_publishing_error":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[3],"class_list":["post-278","post","type-post","status-publish","format-standard","hentry","category-all","tag-ionic"],"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>Understanding Pull to Refresh - Ionic Blog<\/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:\/\/ionic.io\/blog\/pull-to-refresh-directive\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Understanding Pull to Refresh\" \/>\n<meta property=\"og:description\" content=\"This is a guest post by Andrew McGivery, an application developer with a strong background in Android, AngularJS, Ionic, C#, SQL, and front end development. Andrew writes often about Ionic and how to build great hybrid apps. Read more on Andrew&#8217;s personal blog With the rise of social networks, the &#8220;feed&#8221; has become a popular [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ionic.io\/blog\/pull-to-refresh-directive\" \/>\n<meta property=\"og:site_name\" content=\"Ionic Blog\" \/>\n<meta property=\"article:published_time\" content=\"2015-01-28T02:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-01-09T06:56:25+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/mcgivery.com\/wp-content\/uploads\/2015\/01\/list.png\" \/>\n<meta name=\"author\" content=\"Andrew McGivery\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@andrewmcgivery\" \/>\n<meta name=\"twitter:site\" content=\"@ionicframework\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Andrew McGivery\" \/>\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\":\"Article\",\"@id\":\"https:\/\/ionic.io\/blog\/pull-to-refresh-directive#article\",\"isPartOf\":{\"@id\":\"https:\/\/ionic.io\/blog\/pull-to-refresh-directive\"},\"author\":{\"name\":\"Andrew McGivery\",\"@id\":\"https:\/\/ionic.io\/blog\/#\/schema\/person\/f919a9d571424a39c0ec8ce6d44755e7\"},\"headline\":\"Understanding Pull to Refresh\",\"datePublished\":\"2015-01-28T02:00:00+00:00\",\"dateModified\":\"2017-01-09T06:56:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ionic.io\/blog\/pull-to-refresh-directive\"},\"wordCount\":511,\"publisher\":{\"@id\":\"https:\/\/ionic.io\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/ionic.io\/blog\/pull-to-refresh-directive#primaryimage\"},\"thumbnailUrl\":\"http:\/\/mcgivery.com\/wp-content\/uploads\/2015\/01\/list.png\",\"keywords\":[\"Ionic\"],\"articleSection\":[\"All\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ionic.io\/blog\/pull-to-refresh-directive\",\"url\":\"https:\/\/ionic.io\/blog\/pull-to-refresh-directive\",\"name\":\"Understanding Pull to Refresh - Ionic Blog\",\"isPartOf\":{\"@id\":\"https:\/\/ionic.io\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/ionic.io\/blog\/pull-to-refresh-directive#primaryimage\"},\"image\":{\"@id\":\"https:\/\/ionic.io\/blog\/pull-to-refresh-directive#primaryimage\"},\"thumbnailUrl\":\"http:\/\/mcgivery.com\/wp-content\/uploads\/2015\/01\/list.png\",\"datePublished\":\"2015-01-28T02:00:00+00:00\",\"dateModified\":\"2017-01-09T06:56:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/ionic.io\/blog\/pull-to-refresh-directive#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ionic.io\/blog\/pull-to-refresh-directive\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ionic.io\/blog\/pull-to-refresh-directive#primaryimage\",\"url\":\"http:\/\/mcgivery.com\/wp-content\/uploads\/2015\/01\/list.png\",\"contentUrl\":\"http:\/\/mcgivery.com\/wp-content\/uploads\/2015\/01\/list.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ionic.io\/blog\/pull-to-refresh-directive#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ionic.io\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Understanding Pull to Refresh\"}]},{\"@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\/f919a9d571424a39c0ec8ce6d44755e7\",\"name\":\"Andrew McGivery\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ionic.io\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/30cc07af4f34ecef53282a28baa6b213feb275e5abbd28b62d197851aff4ca7e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/30cc07af4f34ecef53282a28baa6b213feb275e5abbd28b62d197851aff4ca7e?s=96&d=mm&r=g\",\"caption\":\"Andrew McGivery\"},\"description\":\"My name is Andrew McGivery. I currently work full time as an application developer at Manulife Financial in Canada.\",\"sameAs\":[\"http:\/\/www.mcgivery.com\/\",\"https:\/\/x.com\/andrewmcgivery\"],\"url\":\"https:\/\/ionic.io\/blog\/author\/andrewmcgivery\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Understanding Pull to Refresh - Ionic Blog","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\/pull-to-refresh-directive","og_locale":"en_US","og_type":"article","og_title":"Understanding Pull to Refresh","og_description":"This is a guest post by Andrew McGivery, an application developer with a strong background in Android, AngularJS, Ionic, C#, SQL, and front end development. Andrew writes often about Ionic and how to build great hybrid apps. Read more on Andrew&#8217;s personal blog With the rise of social networks, the &#8220;feed&#8221; has become a popular [&hellip;]","og_url":"https:\/\/ionic.io\/blog\/pull-to-refresh-directive","og_site_name":"Ionic Blog","article_published_time":"2015-01-28T02:00:00+00:00","article_modified_time":"2017-01-09T06:56:25+00:00","og_image":[{"url":"http:\/\/mcgivery.com\/wp-content\/uploads\/2015\/01\/list.png"}],"author":"Andrew McGivery","twitter_card":"summary_large_image","twitter_creator":"@andrewmcgivery","twitter_site":"@ionicframework","twitter_misc":{"Written by":"Andrew McGivery","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ionic.io\/blog\/pull-to-refresh-directive#article","isPartOf":{"@id":"https:\/\/ionic.io\/blog\/pull-to-refresh-directive"},"author":{"name":"Andrew McGivery","@id":"https:\/\/ionic.io\/blog\/#\/schema\/person\/f919a9d571424a39c0ec8ce6d44755e7"},"headline":"Understanding Pull to Refresh","datePublished":"2015-01-28T02:00:00+00:00","dateModified":"2017-01-09T06:56:25+00:00","mainEntityOfPage":{"@id":"https:\/\/ionic.io\/blog\/pull-to-refresh-directive"},"wordCount":511,"publisher":{"@id":"https:\/\/ionic.io\/blog\/#organization"},"image":{"@id":"https:\/\/ionic.io\/blog\/pull-to-refresh-directive#primaryimage"},"thumbnailUrl":"http:\/\/mcgivery.com\/wp-content\/uploads\/2015\/01\/list.png","keywords":["Ionic"],"articleSection":["All"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/ionic.io\/blog\/pull-to-refresh-directive","url":"https:\/\/ionic.io\/blog\/pull-to-refresh-directive","name":"Understanding Pull to Refresh - Ionic Blog","isPartOf":{"@id":"https:\/\/ionic.io\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ionic.io\/blog\/pull-to-refresh-directive#primaryimage"},"image":{"@id":"https:\/\/ionic.io\/blog\/pull-to-refresh-directive#primaryimage"},"thumbnailUrl":"http:\/\/mcgivery.com\/wp-content\/uploads\/2015\/01\/list.png","datePublished":"2015-01-28T02:00:00+00:00","dateModified":"2017-01-09T06:56:25+00:00","breadcrumb":{"@id":"https:\/\/ionic.io\/blog\/pull-to-refresh-directive#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ionic.io\/blog\/pull-to-refresh-directive"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ionic.io\/blog\/pull-to-refresh-directive#primaryimage","url":"http:\/\/mcgivery.com\/wp-content\/uploads\/2015\/01\/list.png","contentUrl":"http:\/\/mcgivery.com\/wp-content\/uploads\/2015\/01\/list.png"},{"@type":"BreadcrumbList","@id":"https:\/\/ionic.io\/blog\/pull-to-refresh-directive#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ionic.io\/blog"},{"@type":"ListItem","position":2,"name":"Understanding Pull to Refresh"}]},{"@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\/f919a9d571424a39c0ec8ce6d44755e7","name":"Andrew McGivery","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ionic.io\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/30cc07af4f34ecef53282a28baa6b213feb275e5abbd28b62d197851aff4ca7e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/30cc07af4f34ecef53282a28baa6b213feb275e5abbd28b62d197851aff4ca7e?s=96&d=mm&r=g","caption":"Andrew McGivery"},"description":"My name is Andrew McGivery. I currently work full time as an application developer at Manulife Financial in Canada.","sameAs":["http:\/\/www.mcgivery.com\/","https:\/\/x.com\/andrewmcgivery"],"url":"https:\/\/ionic.io\/blog\/author\/andrewmcgivery"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/posts\/278","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\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/comments?post=278"}],"version-history":[{"count":0,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/posts\/278\/revisions"}],"wp:attachment":[{"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/media?parent=278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/categories?post=278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/tags?post=278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}