{"id":61437,"date":"2024-04-29T15:27:18","date_gmt":"2024-04-29T09:57:18","guid":{"rendered":"https:\/\/www.tothenew.com\/blog\/?p=61437"},"modified":"2024-04-29T15:27:18","modified_gmt":"2024-04-29T09:57:18","slug":"angular-authentication-guards","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/angular-authentication-guards\/","title":{"rendered":"Angular Authentication Guards"},"content":{"rendered":"<h3><strong>What are Authentication Guards?<\/strong><\/h3>\n<p><strong>Authentication Guards<\/strong> are used to protect routes and control access based on user authentication status. They intercept route navigation request and ensures that only authorized users can access certain parts of an application. This feature is used for authentication, authorization and role based access control(RBAC).<\/p>\n<h3><strong>Implementing Authentication Guards:-<\/strong><\/h3>\n<p><strong>CanActivate Guard <\/strong>determines if a route can be activated or not. It&#8217;s used to prevent unauthorized access to certain routes based on the user&#8217;s authentication state. If the guard returns true, navigation is allowed. Otherwise, the user is redirected to the default route.<\/p>\n<ul>\n<li>\u00a0<strong>Create an Authentication Service: <\/strong>First, create an AuthService that manages the user authentication state by checking if the user is logged in or not.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-61433 size-large alignnone\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2024\/04\/img1-1024x519.png\" alt=\"Blog image\" width=\"625\" height=\"317\" srcset=\"https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2024\/04\/img1-1024x519.png 1024w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2024\/04\/img1-300x152.png 300w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2024\/04\/img1-768x389.png 768w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2024\/04\/img1-1536x779.png 1536w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2024\/04\/img1-624x316.png 624w, \/blog\/wp-ttn-blog\/uploads\/2024\/04\/img1.png 1617w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/p>\n<ul>\n<li>\u00a0 \u00a0<strong>Implementing CanActivate Guard:-\u00a0<\/strong>Create an AuthGuard that implements CanActivate to protect routes based on authentication status.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-61434 size-large\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2024\/04\/Screenshot-2024-04-28-160759-1024x464.png\" alt=\"Blog image\" width=\"625\" height=\"283\" srcset=\"https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-28-160759-1024x464.png 1024w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-28-160759-300x136.png 300w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-28-160759-768x348.png 768w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-28-160759-624x282.png 624w, \/blog\/wp-ttn-blog\/uploads\/2024\/04\/Screenshot-2024-04-28-160759.png 1310w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Apply Guards Routes:-<\/strong><\/h3>\n<p>Apply guards to routes using the canActivate property in the routing configuration.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-61435 size-large\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2024\/04\/Screenshot-2024-04-28-161602-1024x300.png\" alt=\"Blog image\" width=\"625\" height=\"183\" srcset=\"https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-28-161602-1024x300.png 1024w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-28-161602-300x88.png 300w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-28-161602-768x225.png 768w, https:\/\/www.tothenew.com\/blog\/wp-content\/uploads\/2024\/04\/Screenshot-2024-04-28-161602-624x183.png 624w, \/blog\/wp-ttn-blog\/uploads\/2024\/04\/Screenshot-2024-04-28-161602.png 1199w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Conclusion:-<\/strong><\/h3>\n<p>Authentication guards are powerful tools for implementing secure navigation and controlling access to routes based on user authentication. By using guards, you can enhance the security and usability of your Angular Application.<\/p>\n<h4>I hope this blog post has provided you with a comprehensive understanding of authentication guards and how to implement them in your projects.<\/h4>\n<div class=\"ap-custom-wrapper\"><\/div><!--ap-custom-wrapper-->","protected":false},"excerpt":{"rendered":"<p>What are Authentication Guards? Authentication Guards are used to protect routes and control access based on user authentication status. They intercept route navigation request and ensures that only authorized users can access certain parts of an application. This feature is used for authentication, authorization and role based access control(RBAC). Implementing Authentication Guards:- CanActivate Guard determines [&hellip;]<\/p>\n","protected":false},"author":1774,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":33,"footnotes":""},"categories":[1439,1994],"tags":[5858,955,5857,5856],"class_list":["post-61437","post","type-post","status-publish","format-standard","hentry","category-angular","category-software-development","tag-angularauthguards","tag-angularjs","tag-frontenddeveloper","tag-webdeveloper"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"What are Authentication Guards? Authentication Guards are used to protect routes and control access based on user authentication status. They intercept route navigation request and ensures that only authorized users can access certain parts of an application. This feature is used for authentication, authorization and role based access control(RBAC). Implementing Authentication Guards:- CanActivate Guard determines\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Jagriti\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.tothenew.com\/blog\/angular-authentication-guards\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Angular Authentication Guards | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"What are Authentication Guards? Authentication Guards are used to protect routes and control access based on user authentication status. They intercept route navigation request and ensures that only authorized users can access certain parts of an application. This feature is used for authentication, authorization and role based access control(RBAC). Implementing Authentication Guards:- CanActivate Guard determines\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.tothenew.com\/blog\/angular-authentication-guards\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Angular Authentication Guards | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"What are Authentication Guards? Authentication Guards are used to protect routes and control access based on user authentication status. They intercept route navigation request and ensures that only authorized users can access certain parts of an application. This feature is used for authentication, authorization and role based access control(RBAC). Implementing Authentication Guards:- CanActivate Guard determines\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angular-authentication-guards\\\/#article\",\"name\":\"Angular Authentication Guards | TO THE NEW Blog\",\"headline\":\"Angular Authentication Guards\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/jagriti\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/wp-ttn-blog\\\/uploads\\\/2024\\\/04\\\/img1-1024x519.png\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angular-authentication-guards\\\/#articleImage\"},\"datePublished\":\"2024-04-29T15:27:18+05:30\",\"dateModified\":\"2024-04-29T15:27:18+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angular-authentication-guards\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angular-authentication-guards\\\/#webpage\"},\"articleSection\":\"AngularJS, Software development, AngularAuthGuards, AngularJS, FrontendDeveloper, webdeveloper\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angular-authentication-guards\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/angular\\\/#listItem\",\"name\":\"AngularJS\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/angular\\\/#listItem\",\"position\":2,\"name\":\"AngularJS\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/angular\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angular-authentication-guards\\\/#listItem\",\"name\":\"Angular Authentication Guards\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angular-authentication-guards\\\/#listItem\",\"position\":3,\"name\":\"Angular Authentication Guards\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/angular\\\/#listItem\",\"name\":\"AngularJS\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/jagriti\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/jagriti\\\/\",\"name\":\"Jagriti\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angular-authentication-guards\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/74ad0961-8bf6-4bae-bec7-fd35572b5586_Jagriti-.-Profile-Pitcure.jpeg\",\"width\":96,\"height\":96,\"caption\":\"Jagriti\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angular-authentication-guards\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angular-authentication-guards\\\/\",\"name\":\"Angular Authentication Guards | TO THE NEW Blog\",\"description\":\"What are Authentication Guards? Authentication Guards are used to protect routes and control access based on user authentication status. They intercept route navigation request and ensures that only authorized users can access certain parts of an application. This feature is used for authentication, authorization and role based access control(RBAC). Implementing Authentication Guards:- CanActivate Guard determines\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angular-authentication-guards\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/jagriti\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/jagriti\\\/#author\"},\"datePublished\":\"2024-04-29T15:27:18+05:30\",\"dateModified\":\"2024-04-29T15:27:18+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Angular Authentication Guards | TO THE NEW Blog","description":"What are Authentication Guards? Authentication Guards are used to protect routes and control access based on user authentication status. They intercept route navigation request and ensures that only authorized users can access certain parts of an application. This feature is used for authentication, authorization and role based access control(RBAC). Implementing Authentication Guards:- CanActivate Guard determines","canonical_url":"https:\/\/www.tothenew.com\/blog\/angular-authentication-guards\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tothenew.com\/blog\/angular-authentication-guards\/#article","name":"Angular Authentication Guards | TO THE NEW Blog","headline":"Angular Authentication Guards","author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/jagriti\/#author"},"publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2024\/04\/img1-1024x519.png","@id":"https:\/\/www.tothenew.com\/blog\/angular-authentication-guards\/#articleImage"},"datePublished":"2024-04-29T15:27:18+05:30","dateModified":"2024-04-29T15:27:18+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.tothenew.com\/blog\/angular-authentication-guards\/#webpage"},"isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/angular-authentication-guards\/#webpage"},"articleSection":"AngularJS, Software development, AngularAuthGuards, AngularJS, FrontendDeveloper, webdeveloper"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tothenew.com\/blog\/angular-authentication-guards\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.tothenew.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/angular\/#listItem","name":"AngularJS"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/angular\/#listItem","position":2,"name":"AngularJS","item":"https:\/\/www.tothenew.com\/blog\/category\/angular\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/angular-authentication-guards\/#listItem","name":"Angular Authentication Guards"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/angular-authentication-guards\/#listItem","position":3,"name":"Angular Authentication Guards","previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/angular\/#listItem","name":"AngularJS"}}]},{"@type":"Organization","@id":"https:\/\/www.tothenew.com\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/www.tothenew.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.tothenew.com\/blog\/author\/jagriti\/#author","url":"https:\/\/www.tothenew.com\/blog\/author\/jagriti\/","name":"Jagriti","image":{"@type":"ImageObject","@id":"https:\/\/www.tothenew.com\/blog\/angular-authentication-guards\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/74ad0961-8bf6-4bae-bec7-fd35572b5586_Jagriti-.-Profile-Pitcure.jpeg","width":96,"height":96,"caption":"Jagriti"}},{"@type":"WebPage","@id":"https:\/\/www.tothenew.com\/blog\/angular-authentication-guards\/#webpage","url":"https:\/\/www.tothenew.com\/blog\/angular-authentication-guards\/","name":"Angular Authentication Guards | TO THE NEW Blog","description":"What are Authentication Guards? Authentication Guards are used to protect routes and control access based on user authentication status. They intercept route navigation request and ensures that only authorized users can access certain parts of an application. This feature is used for authentication, authorization and role based access control(RBAC). Implementing Authentication Guards:- CanActivate Guard determines","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.tothenew.com\/blog\/angular-authentication-guards\/#breadcrumblist"},"author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/jagriti\/#author"},"creator":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/jagriti\/#author"},"datePublished":"2024-04-29T15:27:18+05:30","dateModified":"2024-04-29T15:27:18+05:30"},{"@type":"WebSite","@id":"https:\/\/www.tothenew.com\/blog\/#website","url":"https:\/\/www.tothenew.com\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Angular Authentication Guards | TO THE NEW Blog","og:description":"What are Authentication Guards? Authentication Guards are used to protect routes and control access based on user authentication status. They intercept route navigation request and ensures that only authorized users can access certain parts of an application. This feature is used for authentication, authorization and role based access control(RBAC). Implementing Authentication Guards:- CanActivate Guard determines","og:url":"https:\/\/www.tothenew.com\/blog\/angular-authentication-guards\/","og:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Angular Authentication Guards | TO THE NEW Blog","twitter:description":"What are Authentication Guards? Authentication Guards are used to protect routes and control access based on user authentication status. They intercept route navigation request and ensures that only authorized users can access certain parts of an application. This feature is used for authentication, authorization and role based access control(RBAC). Implementing Authentication Guards:- CanActivate Guard determines","twitter:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"61437","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"limit_modified_date":false,"created":"2024-04-29 09:42:49","updated":"2024-04-29 09:57:19","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\/category\/angular\/\" title=\"AngularJS\">AngularJS<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tAngular Authentication Guards\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.tothenew.com\/blog"},{"label":"AngularJS","link":"https:\/\/www.tothenew.com\/blog\/category\/angular\/"},{"label":"Angular Authentication Guards","link":"https:\/\/www.tothenew.com\/blog\/angular-authentication-guards\/"}],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/61437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/1774"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=61437"}],"version-history":[{"count":3,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/61437\/revisions"}],"predecessor-version":[{"id":61494,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/61437\/revisions\/61494"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=61437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=61437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=61437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}