{"action":"closed","number":35,"pull_request":{"url":"https://api.github.com/repos/grahammendick/navigation/pulls/35","id":51990670,"html_url":"https://github.com/grahammendick/navigation/pull/35","diff_url":"https://github.com/grahammendick/navigation/pull/35.diff","patch_url":"https://github.com/grahammendick/navigation/pull/35.patch","issue_url":"https://api.github.com/repos/grahammendick/navigation/issues/35","number":35,"state":"closed","locked":false,"title":"Added History Action to Navigation Api","user":{"login":"grahammendick","id":1761227,"avatar_url":"https://avatars.githubusercontent.com/u/1761227?v=3","gravatar_id":"","url":"https://api.github.com/users/grahammendick","html_url":"https://github.com/grahammendick","followers_url":"https://api.github.com/users/grahammendick/followers","following_url":"https://api.github.com/users/grahammendick/following{/other_user}","gists_url":"https://api.github.com/users/grahammendick/gists{/gist_id}","starred_url":"https://api.github.com/users/grahammendick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grahammendick/subscriptions","organizations_url":"https://api.github.com/users/grahammendick/orgs","repos_url":"https://api.github.com/users/grahammendick/repos","events_url":"https://api.github.com/users/grahammendick/events{/privacy}","received_events_url":"https://api.github.com/users/grahammendick/received_events","type":"User","site_admin":false},"body":"The default history behaviour was to add a new history entry after a successful navigation. The only way to change this was to implement a custom history manager. But, the context of how that navigation happened isn't available to the addHistory function, making it hard to decide whether to add or replace the history entry.\r\n\r\nAdded a HistoryAction enum optional parameter to all navigation functions on the StateController. This enum has three values: Add, Replace and None. The default value of the parameter is Add so the current behaviour is retained. Changed the IHistoryManager by adding an optional replace boolean to the addHistory function. The only time this will be set to true is if Replace action is passed in. Passing an action of None means the history manager won't be called.\r\n\r\nAlso, changed the Navigation plugins so that the history action can be passed into the Link components. Angular didn't allow an enum to be passed as the value of the attribute binding because the context is always the Controller scope and not the window. So allowed a string to be passed in as the history action value: 'Add', 'Replace' or 'None'.\r\n","created_at":"2015-11-27T12:35:47Z","updated_at":"2015-11-27T12:36:12Z","closed_at":"2015-11-27T12:36:12Z","merged_at":"2015-11-27T12:36:12Z","merge_commit_sha":"97f26b61861ac72c42efe21a8c3428b4ab438c00","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/grahammendick/navigation/pulls/35/commits","review_comments_url":"https://api.github.com/repos/grahammendick/navigation/pulls/35/comments","review_comment_url":"https://api.github.com/repos/grahammendick/navigation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/grahammendick/navigation/issues/35/comments","statuses_url":"https://api.github.com/repos/grahammendick/navigation/statuses/c8cbc82bd70a89a27cf2929a02b1c6a1b4a9cdc3","head":{"label":"grahammendick:historyaction","ref":"historyaction","sha":"c8cbc82bd70a89a27cf2929a02b1c6a1b4a9cdc3","user":{"login":"grahammendick","id":1761227,"avatar_url":"https://avatars.githubusercontent.com/u/1761227?v=3","gravatar_id":"","url":"https://api.github.com/users/grahammendick","html_url":"https://github.com/grahammendick","followers_url":"https://api.github.com/users/grahammendick/followers","following_url":"https://api.github.com/users/grahammendick/following{/other_user}","gists_url":"https://api.github.com/users/grahammendick/gists{/gist_id}","starred_url":"https://api.github.com/users/grahammendick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grahammendick/subscriptions","organizations_url":"https://api.github.com/users/grahammendick/orgs","repos_url":"https://api.github.com/users/grahammendick/repos","events_url":"https://api.github.com/users/grahammendick/events{/privacy}","received_events_url":"https://api.github.com/users/grahammendick/received_events","type":"User","site_admin":false},"repo":{"id":32039560,"name":"navigation","full_name":"grahammendick/navigation","owner":{"login":"grahammendick","id":1761227,"avatar_url":"https://avatars.githubusercontent.com/u/1761227?v=3","gravatar_id":"","url":"https://api.github.com/users/grahammendick","html_url":"https://github.com/grahammendick","followers_url":"https://api.github.com/users/grahammendick/followers","following_url":"https://api.github.com/users/grahammendick/following{/other_user}","gists_url":"https://api.github.com/users/grahammendick/gists{/gist_id}","starred_url":"https://api.github.com/users/grahammendick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grahammendick/subscriptions","organizations_url":"https://api.github.com/users/grahammendick/orgs","repos_url":"https://api.github.com/users/grahammendick/repos","events_url":"https://api.github.com/users/grahammendick/events{/privacy}","received_events_url":"https://api.github.com/users/grahammendick/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/grahammendick/navigation","description":"A Web library that adds a State machine layer on top of a Router. For ASP.NET or JavaScript.","fork":false,"url":"https://api.github.com/repos/grahammendick/navigation","forks_url":"https://api.github.com/repos/grahammendick/navigation/forks","keys_url":"https://api.github.com/repos/grahammendick/navigation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grahammendick/navigation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grahammendick/navigation/teams","hooks_url":"https://api.github.com/repos/grahammendick/navigation/hooks","issue_events_url":"https://api.github.com/repos/grahammendick/navigation/issues/events{/number}","events_url":"https://api.github.com/repos/grahammendick/navigation/events","assignees_url":"https://api.github.com/repos/grahammendick/navigation/assignees{/user}","branches_url":"https://api.github.com/repos/grahammendick/navigation/branches{/branch}","tags_url":"https://api.github.com/repos/grahammendick/navigation/tags","blobs_url":"https://api.github.com/repos/grahammendick/navigation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grahammendick/navigation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grahammendick/navigation/git/refs{/sha}","trees_url":"https://api.github.com/repos/grahammendick/navigation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grahammendick/navigation/statuses/{sha}","languages_url":"https://api.github.com/repos/grahammendick/navigation/languages","stargazers_url":"https://api.github.com/repos/grahammendick/navigation/stargazers","contributors_url":"https://api.github.com/repos/grahammendick/navigation/contributors","subscribers_url":"https://api.github.com/repos/grahammendick/navigation/subscribers","subscription_url":"https://api.github.com/repos/grahammendick/navigation/subscription","commits_url":"https://api.github.com/repos/grahammendick/navigation/commits{/sha}","git_commits_url":"https://api.github.com/repos/grahammendick/navigation/git/commits{/sha}","comments_url":"https://api.github.com/repos/grahammendick/navigation/comments{/number}","issue_comment_url":"https://api.github.com/repos/grahammendick/navigation/issues/comments{/number}","contents_url":"https://api.github.com/repos/grahammendick/navigation/contents/{+path}","compare_url":"https://api.github.com/repos/grahammendick/navigation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grahammendick/navigation/merges","archive_url":"https://api.github.com/repos/grahammendick/navigation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grahammendick/navigation/downloads","issues_url":"https://api.github.com/repos/grahammendick/navigation/issues{/number}","pulls_url":"https://api.github.com/repos/grahammendick/navigation/pulls{/number}","milestones_url":"https://api.github.com/repos/grahammendick/navigation/milestones{/number}","notifications_url":"https://api.github.com/repos/grahammendick/navigation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grahammendick/navigation/labels{/name}","releases_url":"https://api.github.com/repos/grahammendick/navigation/releases{/id}","created_at":"2015-03-11T20:27:48Z","updated_at":"2015-11-11T19:52:44Z","pushed_at":"2015-11-27T12:36:12Z","git_url":"git://github.com/grahammendick/navigation.git","ssh_url":"git@github.com:grahammendick/navigation.git","clone_url":"https://github.com/grahammendick/navigation.git","svn_url":"https://github.com/grahammendick/navigation","homepage":"http://grahammendick.github.io/navigation/","size":7790,"stargazers_count":11,"watchers_count":11,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":0,"forks":3,"open_issues":0,"watchers":11,"default_branch":"master"}},"base":{"label":"grahammendick:master","ref":"master","sha":"e39a0603ffabdcad88a19738420f71800cc42c94","user":{"login":"grahammendick","id":1761227,"avatar_url":"https://avatars.githubusercontent.com/u/1761227?v=3","gravatar_id":"","url":"https://api.github.com/users/grahammendick","html_url":"https://github.com/grahammendick","followers_url":"https://api.github.com/users/grahammendick/followers","following_url":"https://api.github.com/users/grahammendick/following{/other_user}","gists_url":"https://api.github.com/users/grahammendick/gists{/gist_id}","starred_url":"https://api.github.com/users/grahammendick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grahammendick/subscriptions","organizations_url":"https://api.github.com/users/grahammendick/orgs","repos_url":"https://api.github.com/users/grahammendick/repos","events_url":"https://api.github.com/users/grahammendick/events{/privacy}","received_events_url":"https://api.github.com/users/grahammendick/received_events","type":"User","site_admin":false},"repo":{"id":32039560,"name":"navigation","full_name":"grahammendick/navigation","owner":{"login":"grahammendick","id":1761227,"avatar_url":"https://avatars.githubusercontent.com/u/1761227?v=3","gravatar_id":"","url":"https://api.github.com/users/grahammendick","html_url":"https://github.com/grahammendick","followers_url":"https://api.github.com/users/grahammendick/followers","following_url":"https://api.github.com/users/grahammendick/following{/other_user}","gists_url":"https://api.github.com/users/grahammendick/gists{/gist_id}","starred_url":"https://api.github.com/users/grahammendick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grahammendick/subscriptions","organizations_url":"https://api.github.com/users/grahammendick/orgs","repos_url":"https://api.github.com/users/grahammendick/repos","events_url":"https://api.github.com/users/grahammendick/events{/privacy}","received_events_url":"https://api.github.com/users/grahammendick/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/grahammendick/navigation","description":"A Web library that adds a State machine layer on top of a Router. For ASP.NET or JavaScript.","fork":false,"url":"https://api.github.com/repos/grahammendick/navigation","forks_url":"https://api.github.com/repos/grahammendick/navigation/forks","keys_url":"https://api.github.com/repos/grahammendick/navigation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grahammendick/navigation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grahammendick/navigation/teams","hooks_url":"https://api.github.com/repos/grahammendick/navigation/hooks","issue_events_url":"https://api.github.com/repos/grahammendick/navigation/issues/events{/number}","events_url":"https://api.github.com/repos/grahammendick/navigation/events","assignees_url":"https://api.github.com/repos/grahammendick/navigation/assignees{/user}","branches_url":"https://api.github.com/repos/grahammendick/navigation/branches{/branch}","tags_url":"https://api.github.com/repos/grahammendick/navigation/tags","blobs_url":"https://api.github.com/repos/grahammendick/navigation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grahammendick/navigation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grahammendick/navigation/git/refs{/sha}","trees_url":"https://api.github.com/repos/grahammendick/navigation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grahammendick/navigation/statuses/{sha}","languages_url":"https://api.github.com/repos/grahammendick/navigation/languages","stargazers_url":"https://api.github.com/repos/grahammendick/navigation/stargazers","contributors_url":"https://api.github.com/repos/grahammendick/navigation/contributors","subscribers_url":"https://api.github.com/repos/grahammendick/navigation/subscribers","subscription_url":"https://api.github.com/repos/grahammendick/navigation/subscription","commits_url":"https://api.github.com/repos/grahammendick/navigation/commits{/sha}","git_commits_url":"https://api.github.com/repos/grahammendick/navigation/git/commits{/sha}","comments_url":"https://api.github.com/repos/grahammendick/navigation/comments{/number}","issue_comment_url":"https://api.github.com/repos/grahammendick/navigation/issues/comments{/number}","contents_url":"https://api.github.com/repos/grahammendick/navigation/contents/{+path}","compare_url":"https://api.github.com/repos/grahammendick/navigation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grahammendick/navigation/merges","archive_url":"https://api.github.com/repos/grahammendick/navigation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grahammendick/navigation/downloads","issues_url":"https://api.github.com/repos/grahammendick/navigation/issues{/number}","pulls_url":"https://api.github.com/repos/grahammendick/navigation/pulls{/number}","milestones_url":"https://api.github.com/repos/grahammendick/navigation/milestones{/number}","notifications_url":"https://api.github.com/repos/grahammendick/navigation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grahammendick/navigation/labels{/name}","releases_url":"https://api.github.com/repos/grahammendick/navigation/releases{/id}","created_at":"2015-03-11T20:27:48Z","updated_at":"2015-11-11T19:52:44Z","pushed_at":"2015-11-27T12:36:12Z","git_url":"git://github.com/grahammendick/navigation.git","ssh_url":"git@github.com:grahammendick/navigation.git","clone_url":"https://github.com/grahammendick/navigation.git","svn_url":"https://github.com/grahammendick/navigation","homepage":"http://grahammendick.github.io/navigation/","size":7790,"stargazers_count":11,"watchers_count":11,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":0,"forks":3,"open_issues":0,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/grahammendick/navigation/pulls/35"},"html":{"href":"https://github.com/grahammendick/navigation/pull/35"},"issue":{"href":"https://api.github.com/repos/grahammendick/navigation/issues/35"},"comments":{"href":"https://api.github.com/repos/grahammendick/navigation/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/grahammendick/navigation/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/grahammendick/navigation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/grahammendick/navigation/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/grahammendick/navigation/statuses/c8cbc82bd70a89a27cf2929a02b1c6a1b4a9cdc3"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"grahammendick","id":1761227,"avatar_url":"https://avatars.githubusercontent.com/u/1761227?v=3","gravatar_id":"","url":"https://api.github.com/users/grahammendick","html_url":"https://github.com/grahammendick","followers_url":"https://api.github.com/users/grahammendick/followers","following_url":"https://api.github.com/users/grahammendick/following{/other_user}","gists_url":"https://api.github.com/users/grahammendick/gists{/gist_id}","starred_url":"https://api.github.com/users/grahammendick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grahammendick/subscriptions","organizations_url":"https://api.github.com/users/grahammendick/orgs","repos_url":"https://api.github.com/users/grahammendick/repos","events_url":"https://api.github.com/users/grahammendick/events{/privacy}","received_events_url":"https://api.github.com/users/grahammendick/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":28,"additions":849,"deletions":74,"changed_files":23}}