{"id":18305,"date":"2015-10-24T13:00:00","date_gmt":"2015-10-24T13:00:00","guid":{"rendered":"http:\/\/cloudcomputing.sys-con.com\/node\/3518969"},"modified":"2015-10-24T13:00:00","modified_gmt":"2015-10-24T13:00:00","slug":"angular-typescript-systemjs-and-browser-cache-thingsexpo-yfain","status":"publish","type":"post","link":"https:\/\/icloud.pe\/blog\/angular-typescript-systemjs-and-browser-cache-thingsexpo-yfain\/","title":{"rendered":"Angular, TypeScript, SystemJS, and Browser Cache | @ThingsExpo @YFain"},"content":{"rendered":"<p>I was writing a small app in Angular 2 in TypeScript with the on-the-fly transpiling by SystemJS.<\/p>\n<p>I needed to implement a router that would switch between the Home and ProductDetail views in a single page app.<\/p>\n<p>The root component had two links and was supposed to render either Home or ProductDetail components depending on which link the user clicks. Angular 2 offers a pretty elegant syntax for this:<\/p>\n<p><a href=\"http:\/\/cloudcomputing.sys-con.com\/node\/3518969\" >read more<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was writing a small app in Angular 2 in TypeScript with the on-the-fly transpiling by SystemJS.<\/p>\n<p>I needed to implement a router that would switch between the Home and ProductDetail views in a single page app.<\/p>\n<p>The root component had two links and was&#8230;<\/p>\n","protected":false},"author":143,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-18305","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts\/18305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/users\/143"}],"replies":[{"embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/comments?post=18305"}],"version-history":[{"count":2,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts\/18305\/revisions"}],"predecessor-version":[{"id":20713,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts\/18305\/revisions\/20713"}],"wp:attachment":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/media?parent=18305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/categories?post=18305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/tags?post=18305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}