{"id":135,"date":"2016-12-12T02:41:38","date_gmt":"2016-12-12T02:41:38","guid":{"rendered":"http:\/\/www.bhoomabrsr.com\/blog\/?p=135"},"modified":"2016-12-12T02:41:38","modified_gmt":"2016-12-12T02:41:38","slug":"angular-2-router-well-usage-of-depth-first-search-dfs","status":"publish","type":"post","link":"https:\/\/www.bhoomabrsr.com\/blog\/index.php\/2016\/12\/12\/angular-2-router-well-usage-of-depth-first-search-dfs\/","title":{"rendered":"Angular 2 &#8211; Router &#8211; Well usage of Depth first search (DFS)"},"content":{"rendered":"<p>One of the major module in angular 2 is router module, it will handle application navigation, authorization and application modularity.<br \/>\nDefinition [Angular 2 router by @vsavkin]:<br \/>\n<em>A router state is an arrangement of application components that defines what is visible on the screen.<\/em><br \/>\nRouter is a tree of components, which will be navigable by user actions and based on URL segments it will move from one route to other route.<br \/>\nSample routes: it\u2019s an array of routes.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n&#x5B;{path: '', pathMatch: 'full', redirectTo: '\/home'},\n{ path: 'home', component: GoGreenAgriHome }\n{ path: 'farms', component: AgriFarms },\n{ path: 'agri-tech', component: AgriTech\nchildren: &#x5B;\n{ path: ':id', component: AgriTechTypes}\n]\n}\n]\n<\/pre>\n<p>A example code you can find at <a href=\"https:\/\/github.com\/bhoomabrsr\/GoGreenAgri\/\">Github<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the major module in angular 2 is router module, it will handle application navigation, authorization and application modularity. Definition [Angular 2 router by @vsavkin]: A router state is an arrangement of application components&hellip; <a href=\"https:\/\/www.bhoomabrsr.com\/blog\/index.php\/2016\/12\/12\/angular-2-router-well-usage-of-depth-first-search-dfs\/\">More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,6,12,13,14,15,18],"tags":[],"class_list":["post-135","post","type-post","status-publish","format-standard","hentry","category-angular","category-angular2","category-ecma-2015","category-ecma5","category-ecma6","category-javascript","category-router"],"_links":{"self":[{"href":"https:\/\/www.bhoomabrsr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bhoomabrsr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bhoomabrsr.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bhoomabrsr.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bhoomabrsr.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=135"}],"version-history":[{"count":1,"href":"https:\/\/www.bhoomabrsr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/135\/revisions"}],"predecessor-version":[{"id":215,"href":"https:\/\/www.bhoomabrsr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/135\/revisions\/215"}],"wp:attachment":[{"href":"https:\/\/www.bhoomabrsr.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bhoomabrsr.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bhoomabrsr.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}