{"action":"closed","number":160,"pull_request":{"url":"https://api.github.com/repos/Narzerus/angular-permission/pulls/160","id":60374157,"html_url":"https://github.com/Narzerus/angular-permission/pull/160","diff_url":"https://github.com/Narzerus/angular-permission/pull/160.diff","patch_url":"https://github.com/Narzerus/angular-permission/pull/160.patch","issue_url":"https://api.github.com/repos/Narzerus/angular-permission/issues/160","number":160,"state":"closed","locked":false,"title":"Add redirectTo syntax similar to  ui-sref","user":{"login":"nanarth","id":9862254,"avatar_url":"https://avatars.githubusercontent.com/u/9862254?v=3","gravatar_id":"","url":"https://api.github.com/users/nanarth","html_url":"https://github.com/nanarth","followers_url":"https://api.github.com/users/nanarth/followers","following_url":"https://api.github.com/users/nanarth/following{/other_user}","gists_url":"https://api.github.com/users/nanarth/gists{/gist_id}","starred_url":"https://api.github.com/users/nanarth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nanarth/subscriptions","organizations_url":"https://api.github.com/users/nanarth/orgs","repos_url":"https://api.github.com/users/nanarth/repos","events_url":"https://api.github.com/users/nanarth/events{/privacy}","received_events_url":"https://api.github.com/users/nanarth/received_events","type":"User","site_admin":false},"body":"It is now possible to write something like:\r\n\r\nredirectTo : 'my-state({ parameter: \"value\"})'\r\n\r\nThis new feature benefits string, object and function redirection. The regular\r\nexpression used to parse the string is the same that the one found in ui-sref.\r\nTo parse the parameter I use angular's $parse service.\r\n\r\nI added one unit test to test that parameters are available in the state after\r\nthe redirection.\r\n\r\nNote: It seems that ui-router filters parameters that are not declared the url\r\npart of the state declaration","created_at":"2016-02-23T17:08:38Z","updated_at":"2016-03-10T17:32:06Z","closed_at":"2016-03-10T17:32:06Z","merged_at":null,"merge_commit_sha":"10c4d804f44dc717a500d1513bcaae889afa75ad","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Narzerus/angular-permission/pulls/160/commits","review_comments_url":"https://api.github.com/repos/Narzerus/angular-permission/pulls/160/comments","review_comment_url":"https://api.github.com/repos/Narzerus/angular-permission/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Narzerus/angular-permission/issues/160/comments","statuses_url":"https://api.github.com/repos/Narzerus/angular-permission/statuses/b2a746ef45fd7dd5d27ace972a9a2a960045cc42","head":{"label":"nanarth:master","ref":"master","sha":"b2a746ef45fd7dd5d27ace972a9a2a960045cc42","user":{"login":"nanarth","id":9862254,"avatar_url":"https://avatars.githubusercontent.com/u/9862254?v=3","gravatar_id":"","url":"https://api.github.com/users/nanarth","html_url":"https://github.com/nanarth","followers_url":"https://api.github.com/users/nanarth/followers","following_url":"https://api.github.com/users/nanarth/following{/other_user}","gists_url":"https://api.github.com/users/nanarth/gists{/gist_id}","starred_url":"https://api.github.com/users/nanarth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nanarth/subscriptions","organizations_url":"https://api.github.com/users/nanarth/orgs","repos_url":"https://api.github.com/users/nanarth/repos","events_url":"https://api.github.com/users/nanarth/events{/privacy}","received_events_url":"https://api.github.com/users/nanarth/received_events","type":"User","site_admin":false},"repo":{"id":51915906,"name":"angular-permission","full_name":"nanarth/angular-permission","owner":{"login":"nanarth","id":9862254,"avatar_url":"https://avatars.githubusercontent.com/u/9862254?v=3","gravatar_id":"","url":"https://api.github.com/users/nanarth","html_url":"https://github.com/nanarth","followers_url":"https://api.github.com/users/nanarth/followers","following_url":"https://api.github.com/users/nanarth/following{/other_user}","gists_url":"https://api.github.com/users/nanarth/gists{/gist_id}","starred_url":"https://api.github.com/users/nanarth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nanarth/subscriptions","organizations_url":"https://api.github.com/users/nanarth/orgs","repos_url":"https://api.github.com/users/nanarth/repos","events_url":"https://api.github.com/users/nanarth/events{/privacy}","received_events_url":"https://api.github.com/users/nanarth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nanarth/angular-permission","description":"Simple route authorization via roles/permissions","fork":true,"url":"https://api.github.com/repos/nanarth/angular-permission","forks_url":"https://api.github.com/repos/nanarth/angular-permission/forks","keys_url":"https://api.github.com/repos/nanarth/angular-permission/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nanarth/angular-permission/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nanarth/angular-permission/teams","hooks_url":"https://api.github.com/repos/nanarth/angular-permission/hooks","issue_events_url":"https://api.github.com/repos/nanarth/angular-permission/issues/events{/number}","events_url":"https://api.github.com/repos/nanarth/angular-permission/events","assignees_url":"https://api.github.com/repos/nanarth/angular-permission/assignees{/user}","branches_url":"https://api.github.com/repos/nanarth/angular-permission/branches{/branch}","tags_url":"https://api.github.com/repos/nanarth/angular-permission/tags","blobs_url":"https://api.github.com/repos/nanarth/angular-permission/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nanarth/angular-permission/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nanarth/angular-permission/git/refs{/sha}","trees_url":"https://api.github.com/repos/nanarth/angular-permission/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nanarth/angular-permission/statuses/{sha}","languages_url":"https://api.github.com/repos/nanarth/angular-permission/languages","stargazers_url":"https://api.github.com/repos/nanarth/angular-permission/stargazers","contributors_url":"https://api.github.com/repos/nanarth/angular-permission/contributors","subscribers_url":"https://api.github.com/repos/nanarth/angular-permission/subscribers","subscription_url":"https://api.github.com/repos/nanarth/angular-permission/subscription","commits_url":"https://api.github.com/repos/nanarth/angular-permission/commits{/sha}","git_commits_url":"https://api.github.com/repos/nanarth/angular-permission/git/commits{/sha}","comments_url":"https://api.github.com/repos/nanarth/angular-permission/comments{/number}","issue_comment_url":"https://api.github.com/repos/nanarth/angular-permission/issues/comments{/number}","contents_url":"https://api.github.com/repos/nanarth/angular-permission/contents/{+path}","compare_url":"https://api.github.com/repos/nanarth/angular-permission/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nanarth/angular-permission/merges","archive_url":"https://api.github.com/repos/nanarth/angular-permission/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nanarth/angular-permission/downloads","issues_url":"https://api.github.com/repos/nanarth/angular-permission/issues{/number}","pulls_url":"https://api.github.com/repos/nanarth/angular-permission/pulls{/number}","milestones_url":"https://api.github.com/repos/nanarth/angular-permission/milestones{/number}","notifications_url":"https://api.github.com/repos/nanarth/angular-permission/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nanarth/angular-permission/labels{/name}","releases_url":"https://api.github.com/repos/nanarth/angular-permission/releases{/id}","deployments_url":"https://api.github.com/repos/nanarth/angular-permission/deployments","created_at":"2016-02-17T10:54:34Z","updated_at":"2016-02-17T10:54:35Z","pushed_at":"2016-03-07T14:14:04Z","git_url":"git://github.com/nanarth/angular-permission.git","ssh_url":"git@github.com:nanarth/angular-permission.git","clone_url":"https://github.com/nanarth/angular-permission.git","svn_url":"https://github.com/nanarth/angular-permission","homepage":"","size":309,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Narzerus:master","ref":"master","sha":"3ba0f5f181bcca56774362fc3fe7835d48a23346","user":{"login":"Narzerus","id":1808674,"avatar_url":"https://avatars.githubusercontent.com/u/1808674?v=3","gravatar_id":"","url":"https://api.github.com/users/Narzerus","html_url":"https://github.com/Narzerus","followers_url":"https://api.github.com/users/Narzerus/followers","following_url":"https://api.github.com/users/Narzerus/following{/other_user}","gists_url":"https://api.github.com/users/Narzerus/gists{/gist_id}","starred_url":"https://api.github.com/users/Narzerus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Narzerus/subscriptions","organizations_url":"https://api.github.com/users/Narzerus/orgs","repos_url":"https://api.github.com/users/Narzerus/repos","events_url":"https://api.github.com/users/Narzerus/events{/privacy}","received_events_url":"https://api.github.com/users/Narzerus/received_events","type":"User","site_admin":false},"repo":{"id":23593647,"name":"angular-permission","full_name":"Narzerus/angular-permission","owner":{"login":"Narzerus","id":1808674,"avatar_url":"https://avatars.githubusercontent.com/u/1808674?v=3","gravatar_id":"","url":"https://api.github.com/users/Narzerus","html_url":"https://github.com/Narzerus","followers_url":"https://api.github.com/users/Narzerus/followers","following_url":"https://api.github.com/users/Narzerus/following{/other_user}","gists_url":"https://api.github.com/users/Narzerus/gists{/gist_id}","starred_url":"https://api.github.com/users/Narzerus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Narzerus/subscriptions","organizations_url":"https://api.github.com/users/Narzerus/orgs","repos_url":"https://api.github.com/users/Narzerus/repos","events_url":"https://api.github.com/users/Narzerus/events{/privacy}","received_events_url":"https://api.github.com/users/Narzerus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Narzerus/angular-permission","description":"Simple route authorization via roles/permissions","fork":false,"url":"https://api.github.com/repos/Narzerus/angular-permission","forks_url":"https://api.github.com/repos/Narzerus/angular-permission/forks","keys_url":"https://api.github.com/repos/Narzerus/angular-permission/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Narzerus/angular-permission/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Narzerus/angular-permission/teams","hooks_url":"https://api.github.com/repos/Narzerus/angular-permission/hooks","issue_events_url":"https://api.github.com/repos/Narzerus/angular-permission/issues/events{/number}","events_url":"https://api.github.com/repos/Narzerus/angular-permission/events","assignees_url":"https://api.github.com/repos/Narzerus/angular-permission/assignees{/user}","branches_url":"https://api.github.com/repos/Narzerus/angular-permission/branches{/branch}","tags_url":"https://api.github.com/repos/Narzerus/angular-permission/tags","blobs_url":"https://api.github.com/repos/Narzerus/angular-permission/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Narzerus/angular-permission/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Narzerus/angular-permission/git/refs{/sha}","trees_url":"https://api.github.com/repos/Narzerus/angular-permission/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Narzerus/angular-permission/statuses/{sha}","languages_url":"https://api.github.com/repos/Narzerus/angular-permission/languages","stargazers_url":"https://api.github.com/repos/Narzerus/angular-permission/stargazers","contributors_url":"https://api.github.com/repos/Narzerus/angular-permission/contributors","subscribers_url":"https://api.github.com/repos/Narzerus/angular-permission/subscribers","subscription_url":"https://api.github.com/repos/Narzerus/angular-permission/subscription","commits_url":"https://api.github.com/repos/Narzerus/angular-permission/commits{/sha}","git_commits_url":"https://api.github.com/repos/Narzerus/angular-permission/git/commits{/sha}","comments_url":"https://api.github.com/repos/Narzerus/angular-permission/comments{/number}","issue_comment_url":"https://api.github.com/repos/Narzerus/angular-permission/issues/comments{/number}","contents_url":"https://api.github.com/repos/Narzerus/angular-permission/contents/{+path}","compare_url":"https://api.github.com/repos/Narzerus/angular-permission/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Narzerus/angular-permission/merges","archive_url":"https://api.github.com/repos/Narzerus/angular-permission/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Narzerus/angular-permission/downloads","issues_url":"https://api.github.com/repos/Narzerus/angular-permission/issues{/number}","pulls_url":"https://api.github.com/repos/Narzerus/angular-permission/pulls{/number}","milestones_url":"https://api.github.com/repos/Narzerus/angular-permission/milestones{/number}","notifications_url":"https://api.github.com/repos/Narzerus/angular-permission/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Narzerus/angular-permission/labels{/name}","releases_url":"https://api.github.com/repos/Narzerus/angular-permission/releases{/id}","deployments_url":"https://api.github.com/repos/Narzerus/angular-permission/deployments","created_at":"2014-09-02T20:02:07Z","updated_at":"2016-03-10T15:32:12Z","pushed_at":"2016-03-09T19:57:20Z","git_url":"git://github.com/Narzerus/angular-permission.git","ssh_url":"git@github.com:Narzerus/angular-permission.git","clone_url":"https://github.com/Narzerus/angular-permission.git","svn_url":"https://github.com/Narzerus/angular-permission","homepage":"","size":524,"stargazers_count":653,"watchers_count":653,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":124,"mirror_url":null,"open_issues_count":3,"forks":124,"open_issues":3,"watchers":653,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Narzerus/angular-permission/pulls/160"},"html":{"href":"https://github.com/Narzerus/angular-permission/pull/160"},"issue":{"href":"https://api.github.com/repos/Narzerus/angular-permission/issues/160"},"comments":{"href":"https://api.github.com/repos/Narzerus/angular-permission/issues/160/comments"},"review_comments":{"href":"https://api.github.com/repos/Narzerus/angular-permission/pulls/160/comments"},"review_comment":{"href":"https://api.github.com/repos/Narzerus/angular-permission/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Narzerus/angular-permission/pulls/160/commits"},"statuses":{"href":"https://api.github.com/repos/Narzerus/angular-permission/statuses/b2a746ef45fd7dd5d27ace972a9a2a960045cc42"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":3,"review_comments":6,"commits":2,"additions":60,"deletions":6,"changed_files":3}}