{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/2138","labels_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2138/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2138/comments","events_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2138/events","html_url":"https://github.com/angular-ui/ui-router/issues/2138","id":97773090,"number":2138,"title":"Chainable state definition","user":{"login":"jdiehl","id":1334574,"avatar_url":"https://avatars.githubusercontent.com/u/1334574?v=3","gravatar_id":"","url":"https://api.github.com/users/jdiehl","html_url":"https://github.com/jdiehl","followers_url":"https://api.github.com/users/jdiehl/followers","following_url":"https://api.github.com/users/jdiehl/following{/other_user}","gists_url":"https://api.github.com/users/jdiehl/gists{/gist_id}","starred_url":"https://api.github.com/users/jdiehl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdiehl/subscriptions","organizations_url":"https://api.github.com/users/jdiehl/orgs","repos_url":"https://api.github.com/users/jdiehl/repos","events_url":"https://api.github.com/users/jdiehl/events{/privacy}","received_events_url":"https://api.github.com/users/jdiehl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-28T18:44:08Z","updated_at":"2015-07-30T15:00:37Z","closed_at":null,"body":"Hi there,\r\n\r\nthanks for this great AngularJS module!\r\n\r\nI have written a module to make state definition (in my opinion) a bit easier. It allows defining states as command chains like this:\r\n\r\n```javascript\r\n$stateBuilderProvider\r\n\r\n// main state\r\n.state('main').url('').abstract().resolve('session', resolveSession)\r\n  .state('home').default().done()\r\n  .state('about').done()\r\n.done()\r\n\r\n// user state\r\n.state('user').abstract()\r\n  .state('profile').defaultChild().done()\r\n  .state('friends').abstract()\r\n    .state('list').url('').done()\r\n    .state('show').url('/:id').done()\r\n  .done()\r\n.done();\r\n```\r\n\r\nYou can find the module here: https://github.com/jdiehl/angular-state-builder\r\n\r\nIf you are interested, I would be happy to integrate this module into your project or follow any other advise you have to make it more accessible for the community.\r\n\r\nCheers,\r\n  Jonathan"},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/comments/126360150","html_url":"https://github.com/angular-ui/ui-router/issues/2138#issuecomment-126360150","issue_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2138","id":126360150,"user":{"login":"erkanarslan","id":11949947,"avatar_url":"https://avatars.githubusercontent.com/u/11949947?v=3","gravatar_id":"","url":"https://api.github.com/users/erkanarslan","html_url":"https://github.com/erkanarslan","followers_url":"https://api.github.com/users/erkanarslan/followers","following_url":"https://api.github.com/users/erkanarslan/following{/other_user}","gists_url":"https://api.github.com/users/erkanarslan/gists{/gist_id}","starred_url":"https://api.github.com/users/erkanarslan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erkanarslan/subscriptions","organizations_url":"https://api.github.com/users/erkanarslan/orgs","repos_url":"https://api.github.com/users/erkanarslan/repos","events_url":"https://api.github.com/users/erkanarslan/events{/privacy}","received_events_url":"https://api.github.com/users/erkanarslan/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T15:00:37Z","updated_at":"2015-07-30T15:00:37Z","body":"I think a config blog is more clear than your suggestion."}}