{"id":13285,"date":"2014-05-01T10:09:12","date_gmt":"2014-05-01T04:39:12","guid":{"rendered":"https:\/\/tothenewco.pro\/blog\/?p=13285"},"modified":"2017-08-03T16:00:50","modified_gmt":"2017-08-03T10:30:50","slug":"angular-routes","status":"publish","type":"post","link":"https:\/\/tothenewco.pro\/blog\/angular-routes\/","title":{"rendered":"Angular Routes"},"content":{"rendered":"<p>As we all of know that <a title=\"AngularJS Development Company\" href=\"https:\/\/tothenewco.pro\/front-end-angularjs-development\"><strong>AngularJS<\/strong><\/a> is very popular and powerful front-end framework, which helps us to build rich UI\/UX applications. <strong>AngularJS<\/strong> has many cool things\/features, but today we will concentrate on <strong>routes<\/strong> only and will try to make a small <a href=\"https:\/\/tothenewco.pro\/blog\/optimization-of-angularjs-single-page-applications-for-web-crawlers\/\">single page application<\/a> like <strong>Facebook<\/strong>\/<strong>Gmail<\/strong> with the help of <strong>routes<\/strong>, where we will perform User CRUD operations only.<\/p>\n<p>First of all define <strong>route<\/strong> <strong>mapping<\/strong> for all the different Pages:<\/p>\n<p>[js]<br \/>\n\/*<br \/>\n * Route Mapping: defining route for routeTest module, and as from angular 1.2 version<br \/>\n * ngRoute is now different module, which we have to include explicitly in depended module.<br \/>\n * *\/<br \/>\n\/\/ Defining a module with name routeTest and providing ngRoute as dependency.<br \/>\nangular.module(&#8216;routeTest&#8217;, [&#8216;ngRoute&#8217;])<br \/>\n    .config([&#8216;$routeProvider&#8217;, function ($routeProvider) {<br \/>\n        \/\/ Defining different pages with different URLs<br \/>\n        $routeProvider<br \/>\n            \/\/ If Url is \/user\/list then list.html will render and UserListController will execute.<br \/>\n            .when(&#8216;\/user\/list&#8217;, {templateUrl: &#8216;partials\/list.html&#8217;, controller: UserListController})<br \/>\n            \/\/ If Url is \/user\/create then create.html will render and CreateUserController will execute.<br \/>\n            .when(&#8216;\/user\/create&#8217;, {templateUrl: &#8216;partials\/create.html&#8217;, controller: CreateUserController})<br \/>\n            \/\/ If Url is \/user\/edit\/:id then edit.html will render and EditUserController will execute.<br \/>\n            .when(&#8216;\/user\/edit\/:id&#8217;, {templateUrl: &#8216;partials\/edit.html&#8217;, controller: EditUserController})<br \/>\n            \/\/ If Url is \/user\/show\/:id then show.html will render and ShowUserController will execute.<br \/>\n            .when(&#8216;\/user\/show\/:id&#8217;, {templateUrl: &#8216;partials\/show.html&#8217;, controller: ShowUserController})<br \/>\n            \/\/ TODO Define other URL mapping here.<br \/>\n            \/\/ If no URL matches then otherwise will execute and will redirect to \/user\/list<br \/>\n            .otherwise({redirectTo: &#8216;\/user\/list&#8217;});<br \/>\n    }]);<br \/>\n[\/js]<\/p>\n<p>We have declared <strong>controller<\/strong> and <strong>templateUrl<\/strong> with every URL, <strong>controller<\/strong> will execute and html (which is defined with <strong>templateUrl<\/strong>) will render with the corresponding <strong>URL<\/strong>. And that <strong>controller<\/strong> scope will apply to that corresponding render html. Define all HTMLs in partial directive\/folder and defining <strong>Controllers<\/strong> with dummy as body given below (You can see full working source code from this <a href=\"https:\/\/github.com\/AmitThakkar\/AngularDemo\" target=\"_blank\">link<\/a>):<\/p>\n<p>[js]<br \/>\n\/*<br \/>\n * Master Controller, whose scope will be visible to whole body,<br \/>\n * because we will mark it on body tag.<br \/>\n * *\/<br \/>\nfunction MainController($scope) {<br \/>\n    \/\/ Master Controller<br \/>\n}<\/p>\n<p>\/*<br \/>\n * UserListController, who is responsible for \/user\/list Url<br \/>\n * and its scope will be visible to list.html only.<br \/>\n * *\/<br \/>\nfunction UserListController($scope) {<br \/>\n    \/\/ User List functionality<br \/>\n}<\/p>\n<p>\/*<br \/>\n * CreateUserController, who is responsible for \/user\/list Url<br \/>\n * and its scope will be visible to create.html only.<br \/>\n * *\/<br \/>\nfunction CreateUserController($scope, $location) {<br \/>\n   \/\/ Create User functionality<br \/>\n}<\/p>\n<p>\/*<br \/>\n * ShowUserController, who is responsible for \/user\/list Url<br \/>\n * and its scope will be visible to show.html only.<br \/>\n * *\/<br \/>\nfunction ShowUserController($scope, $routeParams) {<br \/>\n    \/\/ Show user functionality<br \/>\n}<\/p>\n<p>\/*<br \/>\n * EditUserController, who is responsible for \/user\/list Url<br \/>\n * and its scope will be visible to edit.html only.<br \/>\n * *\/<br \/>\nfunction EditUserController($scope, $routeParams, $location) {<br \/>\n    \/\/ Edit User functionality<br \/>\n}<br \/>\n[\/js]<\/p>\n<p>Now define a HTML, which will use all these Code:<\/p>\n<p>[html]<\/p>\n<p>&lt;!&#8211;<br \/>\nmarking ng-app directive to html tag with routeTest value, which says that we are<br \/>\ngoing to use AngularJS on whole html and routeTest module will be apply to HTML.<br \/>\n&#8211;&gt;<\/p>\n<p>    &lt;!&#8211; Require AngularJS &#8211;&gt;<\/p>\n<p>    &lt;!&#8211; Require Angular-Route-JS &#8211;&gt;<\/p>\n<p>    &lt;!&#8211; Require Common Utility UnderscoreJS &#8211;&gt;<\/p>\n<p>    &lt;!&#8211; Require custom routeJS &#8211;&gt;<\/p>\n<p>&lt;!&#8211;<br \/>\nMarking MainController to body tag, so whole body will get scope of Main Controller, All other<br \/>\ncontroller will be child Controller of MainController, so we also call it as Master Controller.<br \/>\n &#8211;&gt;<\/p>\n<p>&lt;!&#8211;<br \/>\nMainController has a scope, which will be accessible to whole html body, because body tag is<br \/>\nmarked with MainController, MainController have a property into its scope with  mainPage,<br \/>\nwhich has a property named as \u201ctitle\u201d, which we are accessing with dot(.) operator on mainPage,<br \/>\nAnd mainPage property is being directly accessed from MainController scope.<br \/>\n&#8211;&gt;&lt;\/pre&gt;<br \/>\n&lt;h2&gt;{{mainPage.title}}&lt;\/h2&gt;<\/p>\n<p>&lt;hr \/&gt;<\/p>\n<p>&lt;div&gt;&lt;a href=&quot;#\/user\/list&quot;&gt;List&lt;\/a&gt; |<br \/>\n&lt;a href=&quot;#\/user\/create&quot;&gt;Create&lt;\/a&gt;&lt;\/div&gt;<\/p>\n<p>&lt;hr \/&gt;<\/p>\n<p>&lt;pre&gt;&lt;!&#8211;<br \/>\nDefining ng-view Directive, where all partial html will load based on Route\/URL Mapping. And<br \/>\nController will execute before partial HTML render. That partial HTML will replace itself<br \/>\nwith inner-HTML of ng-view Directive.<br \/>\n&#8211;&gt;<\/p>\n<p>    Loading&#8230;&lt;\/pre&gt;<\/p>\n<p>&lt;hr \/&gt;<\/p>\n<p>&lt;pre&gt;<br \/>\n[\/html]<\/p>\n<p><strong>NOTE:<\/strong> You can checkout full working source code from this <a href=\"https:\/\/github.com\/AmitThakkar\/AngularDemo\" target=\"_blank\">link<\/a>.<\/p>\n<p><span style=\"font-size: 20px; color: blue;\">Read Further on AngularJS Series<\/span><\/p>\n<ul>\n<li><a href=\"https:\/\/tothenewco.pro\/blog\/angularjs-a-write-less-do-more-javascript-framework\/\">AngularJS :\u00a0A \u201cWrite Less Do More\u201d JavaScript Framework<\/a><\/li>\n<li><a href=\"https:\/\/tothenewco.pro\/blog\/angularjs-updating-a-label-dynamically-with-user-input\/\">AngularJS :\u00a0Updating a Label Dynamically with User Input<\/a><\/li>\n<li><a href=\"https:\/\/tothenewco.pro\/blog\/angularjs-adding-items-to-a-javascript-list-and-updating-corresponding-dom-dynamically\/\">AngularJS :\u00a0Adding Items to a JavaScript List and updating corresponding DOM Dynamically<\/a><\/li>\n<li><a href=\"https:\/\/tothenewco.pro\/blog\/angularjs-text-suggestions\/\">AngularJS :\u00a0Text Suggestions<\/a><\/li>\n<li><a href=\"https:\/\/tothenewco.pro\/blog\/angularjs-sorting-objects-on-various-attributes\/\">AngularJS :\u00a0Sorting objects on various attributes<\/a><\/li>\n<li><a href=\"https:\/\/tothenewco.pro\/blog\/angularjs-fetching-data-from-the-server\/\">AngularJS :\u00a0Fetching data from the server<\/a><\/li>\n<li><a href=\"https:\/\/tothenewco.pro\/blog\/angularjs-multiple-views-layout-template-and-routing\/\">AngularJS :\u00a0Multiple Views, Layout\u00a0Template\u00a0and Routing<\/a><\/li>\n<li><a href=\"https:\/\/tothenewco.pro\/blog\/angularjs-implementing-routes-and-multiple-views\/\">AngularJS :\u00a0Implementing Routes And Multiple Views<\/a><\/li>\n<li><a href=\"https:\/\/tothenewco.pro\/blog\/building-intuitive-frontend-interfaces-with-angularjs\/\">Building Intuitive Frontend Interfaces with AngularJS<\/a><\/li>\n<\/ul>\n<p><strong>\u00a0<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As we all of know that AngularJS is very popular and powerful front-end framework, which helps us to build rich UI\/UX applications. AngularJS has many cool things\/features, but today we will concentrate on routes only and will try to make a small single page application like Facebook\/Gmail with the help of routes, where we will [&hellip;]<\/p>\n","protected":false},"author":52,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":3,"footnotes":""},"categories":[1185],"tags":[3955,955,4697,1415,1417,1418,1416,1388],"class_list":["post-13285","post","type-post","status-publish","format-standard","hentry","category-node-js-2","tag-angular-development","tag-angularjs","tag-angularjs-development-company","tag-application","tag-page","tag-route","tag-single","tag-template"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"As we all of know that AngularJS is very popular and powerful front-end framework, which helps us to build rich UI\/UX applications. AngularJS has many cool things\/features, but today we will concentrate on routes only and will try to make a small single page application like Facebook\/Gmail with the help of routes, where we will\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Amit Kumar\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/tothenewco.pro\/blog\/angular-routes\/\" \/>\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 Routes | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"As we all of know that AngularJS is very popular and powerful front-end framework, which helps us to build rich UI\/UX applications. AngularJS has many cool things\/features, but today we will concentrate on routes only and will try to make a small single page application like Facebook\/Gmail with the help of routes, where we will\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/tothenewco.pro\/blog\/angular-routes\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/tothenewco.pro\/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 Routes | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"As we all of know that AngularJS is very popular and powerful front-end framework, which helps us to build rich UI\/UX applications. AngularJS has many cool things\/features, but today we will concentrate on routes only and will try to make a small single page application like Facebook\/Gmail with the help of routes, where we will\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/tothenewco.pro\/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-routes\\\/#article\",\"name\":\"Angular Routes | TO THE NEW Blog\",\"headline\":\"Angular Routes\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/amit-kumar\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2014-05-01T10:09:12+05:30\",\"dateModified\":\"2017-08-03T16:00:50+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angular-routes\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angular-routes\\\/#webpage\"},\"articleSection\":\"Node.js, angular development, AngularJS, AngularJS Development Company, application, page, route, single, template\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angular-routes\\\/#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\\\/node-js-2\\\/#listItem\",\"name\":\"Node.js\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/node-js-2\\\/#listItem\",\"position\":2,\"name\":\"Node.js\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/node-js-2\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angular-routes\\\/#listItem\",\"name\":\"Angular Routes\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angular-routes\\\/#listItem\",\"position\":3,\"name\":\"Angular Routes\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/node-js-2\\\/#listItem\",\"name\":\"Node.js\"}}]},{\"@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\\\/amit-kumar\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/amit-kumar\\\/\",\"name\":\"Amit Kumar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angular-routes\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/859356966acd3c3879759369c7ac72cfb81228287bfc78e99c3080bee9b6b9ba?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Amit Kumar\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angular-routes\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angular-routes\\\/\",\"name\":\"Angular Routes | TO THE NEW Blog\",\"description\":\"As we all of know that AngularJS is very popular and powerful front-end framework, which helps us to build rich UI\\\/UX applications. AngularJS has many cool things\\\/features, but today we will concentrate on routes only and will try to make a small single page application like Facebook\\\/Gmail with the help of routes, where we will\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/angular-routes\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/amit-kumar\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/amit-kumar\\\/#author\"},\"datePublished\":\"2014-05-01T10:09:12+05:30\",\"dateModified\":\"2017-08-03T16:00:50+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 Routes | TO THE NEW Blog","description":"As we all of know that AngularJS is very popular and powerful front-end framework, which helps us to build rich UI\/UX applications. AngularJS has many cool things\/features, but today we will concentrate on routes only and will try to make a small single page application like Facebook\/Gmail with the help of routes, where we will","canonical_url":"https:\/\/tothenewco.pro\/blog\/angular-routes\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/tothenewco.pro\/blog\/angular-routes\/#article","name":"Angular Routes | TO THE NEW Blog","headline":"Angular Routes","author":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/amit-kumar\/#author"},"publisher":{"@id":"https:\/\/tothenewco.pro\/blog\/#organization"},"datePublished":"2014-05-01T10:09:12+05:30","dateModified":"2017-08-03T16:00:50+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/tothenewco.pro\/blog\/angular-routes\/#webpage"},"isPartOf":{"@id":"https:\/\/tothenewco.pro\/blog\/angular-routes\/#webpage"},"articleSection":"Node.js, angular development, AngularJS, AngularJS Development Company, application, page, route, single, template"},{"@type":"BreadcrumbList","@id":"https:\/\/tothenewco.pro\/blog\/angular-routes\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog#listItem","position":1,"name":"Home","item":"https:\/\/tothenewco.pro\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/node-js-2\/#listItem","name":"Node.js"}},{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/node-js-2\/#listItem","position":2,"name":"Node.js","item":"https:\/\/tothenewco.pro\/blog\/category\/node-js-2\/","nextItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/angular-routes\/#listItem","name":"Angular Routes"},"previousItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/angular-routes\/#listItem","position":3,"name":"Angular Routes","previousItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/node-js-2\/#listItem","name":"Node.js"}}]},{"@type":"Organization","@id":"https:\/\/tothenewco.pro\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/tothenewco.pro\/blog\/"},{"@type":"Person","@id":"https:\/\/tothenewco.pro\/blog\/author\/amit-kumar\/#author","url":"https:\/\/tothenewco.pro\/blog\/author\/amit-kumar\/","name":"Amit Kumar","image":{"@type":"ImageObject","@id":"https:\/\/tothenewco.pro\/blog\/angular-routes\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/859356966acd3c3879759369c7ac72cfb81228287bfc78e99c3080bee9b6b9ba?s=96&d=mm&r=g","width":96,"height":96,"caption":"Amit Kumar"}},{"@type":"WebPage","@id":"https:\/\/tothenewco.pro\/blog\/angular-routes\/#webpage","url":"https:\/\/tothenewco.pro\/blog\/angular-routes\/","name":"Angular Routes | TO THE NEW Blog","description":"As we all of know that AngularJS is very popular and powerful front-end framework, which helps us to build rich UI\/UX applications. AngularJS has many cool things\/features, but today we will concentrate on routes only and will try to make a small single page application like Facebook\/Gmail with the help of routes, where we will","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/tothenewco.pro\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/tothenewco.pro\/blog\/angular-routes\/#breadcrumblist"},"author":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/amit-kumar\/#author"},"creator":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/amit-kumar\/#author"},"datePublished":"2014-05-01T10:09:12+05:30","dateModified":"2017-08-03T16:00:50+05:30"},{"@type":"WebSite","@id":"https:\/\/tothenewco.pro\/blog\/#website","url":"https:\/\/tothenewco.pro\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/tothenewco.pro\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Angular Routes | TO THE NEW Blog","og:description":"As we all of know that AngularJS is very popular and powerful front-end framework, which helps us to build rich UI\/UX applications. AngularJS has many cool things\/features, but today we will concentrate on routes only and will try to make a small single page application like Facebook\/Gmail with the help of routes, where we will","og:url":"https:\/\/tothenewco.pro\/blog\/angular-routes\/","og:image":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Angular Routes | TO THE NEW Blog","twitter:description":"As we all of know that AngularJS is very popular and powerful front-end framework, which helps us to build rich UI\/UX applications. AngularJS has many cool things\/features, but today we will concentrate on routes only and will try to make a small single page application like Facebook\/Gmail with the help of routes, where we will","twitter:image":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"13285","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"blog","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":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","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":null,"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":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-30 08:02:17","updated":"2024-02-29 10:46:28","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:\/\/tothenewco.pro\/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:\/\/tothenewco.pro\/blog\/category\/node-js-2\/\" title=\"Node.js\">Node.js<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tAngular Routes\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/tothenewco.pro\/blog"},{"label":"Node.js","link":"https:\/\/tothenewco.pro\/blog\/category\/node-js-2\/"},{"label":"Angular Routes","link":"https:\/\/tothenewco.pro\/blog\/angular-routes\/"}],"_links":{"self":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts\/13285","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/users\/52"}],"replies":[{"embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/comments?post=13285"}],"version-history":[{"count":0,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts\/13285\/revisions"}],"wp:attachment":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/media?parent=13285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/categories?post=13285"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/tags?post=13285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}