{"id":225,"date":"2020-08-18T09:24:29","date_gmt":"2020-08-18T07:24:29","guid":{"rendered":"http:\/\/www.myblog.nguenkam.com\/?p=225"},"modified":"2021-01-26T16:28:12","modified_gmt":"2021-01-26T15:28:12","slug":"using-the-history-api-javascript-tutorial","status":"publish","type":"post","link":"https:\/\/nguenkam.com\/blog\/index.php\/2020\/08\/18\/using-the-history-api-javascript-tutorial\/","title":{"rendered":"Using the History API &#8211; JavaScript Tutorial"},"content":{"rendered":"\n<p>let\u00b4s take a look<a href=\"https:\/\/youtu.be\/4GqUAaLgpgs\" data-type=\"URL\" data-id=\"https:\/\/youtu.be\/4GqUAaLgpgs\"> <\/a>at the History API and in particular, the &#8220;pushState()&#8221; method. The History API makes it easy for you to create Single Page Applications (SPA). There is few alternative to do it,  Especially with Angular, it\u00b4s even easier.  But it\u00b4s still good to understand the fundament of the native code.<\/p>\n\n\n\n<figure class=\"wp-block-embed-youtube aligncenter wp-block-embed is-type-rich is-provider-embed-handler wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Using the History API - JavaScript Tutorial\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/4GqUAaLgpgs?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>let\u00b4s take a look at the History API and in particular, the &#8220;pushState()&#8221; method. The History API makes it easy for you to create Single Page Applications (SPA). There is few alternative to do it, Especially with Angular, it\u00b4s even easier. But it\u00b4s still good to understand the fundament of the native code.<\/p>\n","protected":false},"author":1,"featured_media":258,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[26,5],"tags":[28,27,29,30],"_links":{"self":[{"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/225"}],"collection":[{"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=225"}],"version-history":[{"count":3,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/225\/revisions"}],"predecessor-version":[{"id":814,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/225\/revisions\/814"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/media\/258"}],"wp:attachment":[{"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}