{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/9809","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/9809/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/9809/comments","events_url":"https://api.github.com/repos/angular/angular/issues/9809/events","html_url":"https://github.com/angular/angular/issues/9809","id":163759826,"number":9809,"title":"router 'name' attribute","user":{"login":"imalhasaranga","id":1076374,"avatar_url":"https://avatars.githubusercontent.com/u/1076374?v=3","gravatar_id":"","url":"https://api.github.com/users/imalhasaranga","html_url":"https://github.com/imalhasaranga","followers_url":"https://api.github.com/users/imalhasaranga/followers","following_url":"https://api.github.com/users/imalhasaranga/following{/other_user}","gists_url":"https://api.github.com/users/imalhasaranga/gists{/gist_id}","starred_url":"https://api.github.com/users/imalhasaranga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imalhasaranga/subscriptions","organizations_url":"https://api.github.com/users/imalhasaranga/orgs","repos_url":"https://api.github.com/users/imalhasaranga/repos","events_url":"https://api.github.com/users/imalhasaranga/events{/privacy}","received_events_url":"https://api.github.com/users/imalhasaranga/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-05T02:11:00Z","updated_at":"2016-07-11T05:44:17Z","closed_at":null,"body":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[x] bug report\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\n**Current behavior**\r\n\r\nthrows an exception when i'm trying to use the name attribute in RouteConfig\r\n\r\n`  { path: '/heroes', name:'hellow', component: Test },`\r\n\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\n\r\nIt seems like 'name' attribute is not longer in the Route interface, \r\n\r\n`export interface Route {\r\n    path?: string;\r\n    terminal?: boolean;\r\n    component?: Type | string;\r\n    outlet?: string;\r\n    canActivate?: any[];\r\n    canDeactivate?: any[];\r\n    redirectTo?: string;\r\n    children?: Route[];\r\n}`\r\n\r\nbut I would say it is very much needed feature, so that we can loosely couple Route paths and the template. there are many times that we would like to change the paths and refine them to make more sense. \r\n\r\n**Please tell us about your environment:**\r\n\r\nos x el capitan\r\n\r\n* **Angular version:** 2.0.0-rc.X\r\n \r\n* **Browser:** [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ] \r\n \r\n* **Language:** [all | TypeScript X.X | ES6/7 | ES5 | Dart] \r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/231646895","html_url":"https://github.com/angular/angular/issues/9809#issuecomment-231646895","issue_url":"https://api.github.com/repos/angular/angular/issues/9809","id":231646895,"user":{"login":"imalhasaranga","id":1076374,"avatar_url":"https://avatars.githubusercontent.com/u/1076374?v=3","gravatar_id":"","url":"https://api.github.com/users/imalhasaranga","html_url":"https://github.com/imalhasaranga","followers_url":"https://api.github.com/users/imalhasaranga/followers","following_url":"https://api.github.com/users/imalhasaranga/following{/other_user}","gists_url":"https://api.github.com/users/imalhasaranga/gists{/gist_id}","starred_url":"https://api.github.com/users/imalhasaranga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imalhasaranga/subscriptions","organizations_url":"https://api.github.com/users/imalhasaranga/orgs","repos_url":"https://api.github.com/users/imalhasaranga/repos","events_url":"https://api.github.com/users/imalhasaranga/events{/privacy}","received_events_url":"https://api.github.com/users/imalhasaranga/received_events","type":"User","site_admin":false},"created_at":"2016-07-11T05:44:17Z","updated_at":"2016-07-11T05:44:17Z","body":"A reply would be greatly appreciated, I believed 'name' attribute in the Route interface is kind of an Id to a particular path. if that is the case why it has been removed ? if there is any alternative to distinguish a path without matching the path would be great so that paths of the app can be easily changed even in the later.  "}}
{"actor":{"display_login":"imalhasaranga"}}