{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/13387","labels_url":"https://api.github.com/repos/angular/angular.js/issues/13387/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/13387/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/13387/events","html_url":"https://github.com/angular/angular.js/issues/13387","id":119034417,"number":13387,"title":"Is routing declaration possible in directive in Angular?","user":{"login":"romykundal","id":990380,"avatar_url":"https://avatars.githubusercontent.com/u/990380?v=3","gravatar_id":"","url":"https://api.github.com/users/romykundal","html_url":"https://github.com/romykundal","followers_url":"https://api.github.com/users/romykundal/followers","following_url":"https://api.github.com/users/romykundal/following{/other_user}","gists_url":"https://api.github.com/users/romykundal/gists{/gist_id}","starred_url":"https://api.github.com/users/romykundal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romykundal/subscriptions","organizations_url":"https://api.github.com/users/romykundal/orgs","repos_url":"https://api.github.com/users/romykundal/repos","events_url":"https://api.github.com/users/romykundal/events{/privacy}","received_events_url":"https://api.github.com/users/romykundal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-26T12:18:29Z","updated_at":"2015-11-26T12:50:32Z","closed_at":"2015-11-26T12:50:32Z","body":"I want to define all site routes in directive and whole site will execute from directives. Is it possible?\r\n\r\nI am doing projects with angularJS for front end and back end. Need to use maximum directives for every modules. So I need help from you experts buddy.\r\n\r\nIf anybody it has been done please share that example here.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular.js/issues/comments/159904482","html_url":"https://github.com/angular/angular.js/issues/13387#issuecomment-159904482","issue_url":"https://api.github.com/repos/angular/angular.js/issues/13387","id":159904482,"user":{"login":"Narretz","id":1153097,"avatar_url":"https://avatars.githubusercontent.com/u/1153097?v=3","gravatar_id":"","url":"https://api.github.com/users/Narretz","html_url":"https://github.com/Narretz","followers_url":"https://api.github.com/users/Narretz/followers","following_url":"https://api.github.com/users/Narretz/following{/other_user}","gists_url":"https://api.github.com/users/Narretz/gists{/gist_id}","starred_url":"https://api.github.com/users/Narretz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Narretz/subscriptions","organizations_url":"https://api.github.com/users/Narretz/orgs","repos_url":"https://api.github.com/users/Narretz/repos","events_url":"https://api.github.com/users/Narretz/events{/privacy}","received_events_url":"https://api.github.com/users/Narretz/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T12:50:32Z","updated_at":"2015-11-26T12:50:32Z","body":"In angular 1, the route definitions are created in the config block. You can create different routes in different module's config blocks. It's not possible to create directives that correspond to routes. In the new router, routes are more closely mapped to directives / components, so that might be interesting for you. I'll have to close this issue though, since this is more of a general support question."}}