{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/2104","labels_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2104/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2104/comments","events_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2104/events","html_url":"https://github.com/angular-ui/ui-router/issues/2104","id":95600853,"number":2104,"title":"Support generic state name?","user":{"login":"zjhiphop","id":763008,"avatar_url":"https://avatars.githubusercontent.com/u/763008?v=3","gravatar_id":"","url":"https://api.github.com/users/zjhiphop","html_url":"https://github.com/zjhiphop","followers_url":"https://api.github.com/users/zjhiphop/followers","following_url":"https://api.github.com/users/zjhiphop/following{/other_user}","gists_url":"https://api.github.com/users/zjhiphop/gists{/gist_id}","starred_url":"https://api.github.com/users/zjhiphop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zjhiphop/subscriptions","organizations_url":"https://api.github.com/users/zjhiphop/orgs","repos_url":"https://api.github.com/users/zjhiphop/repos","events_url":"https://api.github.com/users/zjhiphop/events{/privacy}","received_events_url":"https://api.github.com/users/zjhiphop/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-ui/ui-router/labels/Incomplete","name":"Incomplete","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-17T06:58:23Z","updated_at":"2015-08-18T20:21:44Z","closed_at":"2015-08-18T20:21:44Z","body":"Currently, i have a requirement to share same state to render different template.\r\n\r\ne.g. :\r\n```\r\n    .state('stateA', {\r\n        url: '/stateA/{type:string}/list',\r\n        templateUrl: 'path_to_stateA.html'\r\n    })\r\n```\r\n   When i do it like this, go to previous state will not work again.\r\n\r\n  So I think may be is can be done like this:\r\n```\r\n    .state('stateA(:type)', {   // notice here has different setting\r\n        url: '/stateA/{type:string}/list',\r\n        templateUrl: 'path_to_stateA.html'\r\n    })\r\n```\r\n'stateA(:type)' could be used set state machine to \"state + type\" by some way, then when go to previous state should be works.\r\n\r\nI know here have solution but need to define multiple 'state' config section.\r\nJust an idea, thanks."},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/comments/132339244","html_url":"https://github.com/angular-ui/ui-router/issues/2104#issuecomment-132339244","issue_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2104","id":132339244,"user":{"login":"eddiemonge","id":127535,"avatar_url":"https://avatars.githubusercontent.com/u/127535?v=3","gravatar_id":"","url":"https://api.github.com/users/eddiemonge","html_url":"https://github.com/eddiemonge","followers_url":"https://api.github.com/users/eddiemonge/followers","following_url":"https://api.github.com/users/eddiemonge/following{/other_user}","gists_url":"https://api.github.com/users/eddiemonge/gists{/gist_id}","starred_url":"https://api.github.com/users/eddiemonge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddiemonge/subscriptions","organizations_url":"https://api.github.com/users/eddiemonge/orgs","repos_url":"https://api.github.com/users/eddiemonge/repos","events_url":"https://api.github.com/users/eddiemonge/events{/privacy}","received_events_url":"https://api.github.com/users/eddiemonge/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T20:21:44Z","updated_at":"2015-08-18T20:21:44Z","body":"closing due to inactivity"}}