{"id":24400,"date":"2016-08-04T19:45:00","date_gmt":"2016-08-04T19:45:00","guid":{"rendered":"http:\/\/cloudcomputing.sys-con.com\/node\/3877997"},"modified":"2016-08-04T19:45:00","modified_gmt":"2016-08-04T19:45:00","slug":"angular-2-guarding-routes-cloudexpo-api-cloud-angular2","status":"publish","type":"post","link":"https:\/\/icloud.pe\/blog\/angular-2-guarding-routes-cloudexpo-api-cloud-angular2\/","title":{"rendered":"Angular 2: Guarding Routes | @CloudExpo #API #Cloud #Angular2"},"content":{"rendered":"<p>In this blog I\u2019ll show you how to guard routes in Angular 2 Router (currently at 3.0.0-beta.2).<br \/>\nLet\u2019s consider some scenarios that require a certain validation to be performed to decide if the user (or a program) is allowed to navigate to or leave the route:<br \/>\nAllowed to open the route only if the user is authenticated and authorized to do so.<br \/>\nImplement a multi-part form that consists of several components, and the user is allowed to navigate to the next form section only if the data entered in the current one is valid.<\/p>\n<p><a href=\"http:\/\/cloudcomputing.sys-con.com\/node\/3877997\" >read more<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog I&rsquo;ll show you how to guard routes in Angular 2 Router (currently at 3.0.0-beta.2).<br \/>\nLet&rsquo;s consider some scenarios that require a certain validation to be performed to decide if the user (or a program) is allowed to navigate to or leave the route:<br \/>\nAllowed to open the route only if the user is authenticated and authorized to do so.<br \/>\nImplement a multi-part form that consists of several components, and the user is allowed to navigate to the next form section only if the data entered in the current one is valid.<\/p>\n<p><a href=\"http:\/\/cloudcomputing.sys-con.com\/node\/3877997\" target=\"_blank\">read more<\/a><\/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-24400","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts\/24400","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=24400"}],"version-history":[{"count":2,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts\/24400\/revisions"}],"predecessor-version":[{"id":24559,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts\/24400\/revisions\/24559"}],"wp:attachment":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/media?parent=24400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/categories?post=24400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/tags?post=24400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}