{"action":"created","comment":{"url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/pulls/comments/67733711","id":67733711,"diff_hunk":"@@ -0,0 +1,135 @@\n+var app = angular.module(\"myCalculator\", ['ngRoute']);\n+app.config(['$routeProvider', function($routeProvider){\n+\t$routeProvider.when('/', {\n+\t\ttemplateUrl : 'templates/home.html',\n+\t\tcontroller : 'HomeCtrl'\n+\t}).when('/newMeal', {\n+\t\ttemplateUrl : 'templates/new-meal.html',\n+\t\tcontroller: 'NewMealCtrl'\n+\t}).when('/earnings', {\n+\t\ttemplateUrl: 'templates/my-earnings.html',\n+\t\tcontroller: 'EarningsCtrl'\n+\t});\n+}]);\n+\n+\n+\n+app.controller('HomeCtrl',['$scope', '$rootScope', function($scope, $rootScope){\n+\n+\n+}]);\n+\n+app.controller('NewMealCtrl',['$scope', '$rootScope', 'messageFactory', function($scope, $rootScope, messageFactory){\n+\n+\t$scope.check = messageFactory.check();  \n+\t$scope.initCharge = function (){\n+\t\t$scope.subtotalCharge = 0;\n+\t\t$scope.tipCharge = 0;\n+\t\t$scope.totalCharge = 0;\t\n+\t};\n+\n+\t$scope.initEarnings = function(){\n+\t\t$scope.tipTotal = 0;\n+\t\t$scope.mealCount = 0;\n+\t\t$scope.tipAverage = 0;\n+\t};\n+\n+\t//Trigered by Cancel button\n+\t$scope.cancelValues = function(){\n+\t$scope.price = \"\";\n+\t$scope.tax = \"\";\n+\t$scope.tip =\"\";","path":"app/usingFactories.js","position":41,"original_position":41,"commit_id":"713afb1b57bf0ff525a8eea241b12915eba60318","original_commit_id":"713afb1b57bf0ff525a8eea241b12915eba60318","user":{"login":"aric87","id":9463572,"avatar_url":"https://avatars.githubusercontent.com/u/9463572?v=3","gravatar_id":"","url":"https://api.github.com/users/aric87","html_url":"https://github.com/aric87","followers_url":"https://api.github.com/users/aric87/followers","following_url":"https://api.github.com/users/aric87/following{/other_user}","gists_url":"https://api.github.com/users/aric87/gists{/gist_id}","starred_url":"https://api.github.com/users/aric87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aric87/subscriptions","organizations_url":"https://api.github.com/users/aric87/orgs","repos_url":"https://api.github.com/users/aric87/repos","events_url":"https://api.github.com/users/aric87/events{/privacy}","received_events_url":"https://api.github.com/users/aric87/received_events","type":"User","site_admin":false},"body":"add a space after =\r\n","created_at":"2016-06-20T17:46:24Z","updated_at":"2016-06-20T17:46:24Z","html_url":"https://github.com/yolixtly/waitstaff-calculator/pull/1#discussion_r67733711","pull_request_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/yolixtly/waitstaff-calculator/pulls/comments/67733711"},"html":{"href":"https://github.com/yolixtly/waitstaff-calculator/pull/1#discussion_r67733711"},"pull_request":{"href":"https://api.github.com/repos/yolixtly/waitstaff-calculator/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/pulls/1","id":74476748,"html_url":"https://github.com/yolixtly/waitstaff-calculator/pull/1","diff_url":"https://github.com/yolixtly/waitstaff-calculator/pull/1.diff","patch_url":"https://github.com/yolixtly/waitstaff-calculator/pull/1.patch","issue_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/issues/1","number":1,"state":"open","locked":false,"title":"when switching in between views, data will not render anymore","user":{"login":"yolixtly","id":16545391,"avatar_url":"https://avatars.githubusercontent.com/u/16545391?v=3","gravatar_id":"","url":"https://api.github.com/users/yolixtly","html_url":"https://github.com/yolixtly","followers_url":"https://api.github.com/users/yolixtly/followers","following_url":"https://api.github.com/users/yolixtly/following{/other_user}","gists_url":"https://api.github.com/users/yolixtly/gists{/gist_id}","starred_url":"https://api.github.com/users/yolixtly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yolixtly/subscriptions","organizations_url":"https://api.github.com/users/yolixtly/orgs","repos_url":"https://api.github.com/users/yolixtly/repos","events_url":"https://api.github.com/users/yolixtly/events{/privacy}","received_events_url":"https://api.github.com/users/yolixtly/received_events","type":"User","site_admin":false},"body":"Hi guys! This is the first time I am using ngRoute, I have only 1 controller at the moment, in order to make it easier for me to understand. The problem that I currently have is that, the logic of the calculator, will not render the information for the view called \"my-earnings'', and every time I switch in between views (back to new-meal view) the current information will disappear. I have checked the sources tab and it seems that the calculations are being made and the values are being hold,  but this information, is not being displayed in my views, then my question is why isnt it displaying correctly. What am I missing!? \r\n\r\nAs you can see I have 2 js files, one is using a factory, I believe this file is close to be successfully finished, I had a wonderful Q&A session building this file, but when it is time for me to keep implementing it, I still dont understand this topic yet, hence I am not yet avail to continue it.  The only missing part of this is hocking the factory to the controller of my earnings. but I dont know how the factory is even working... ","created_at":"2016-06-20T16:57:00Z","updated_at":"2016-06-20T17:46:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"41542c7a20244f4646673988b5342ac2190e2142","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/pulls/1/commits","review_comments_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/pulls/1/comments","review_comment_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/issues/1/comments","statuses_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/statuses/713afb1b57bf0ff525a8eea241b12915eba60318","head":{"label":"yolixtly:ngRoute","ref":"ngRoute","sha":"713afb1b57bf0ff525a8eea241b12915eba60318","user":{"login":"yolixtly","id":16545391,"avatar_url":"https://avatars.githubusercontent.com/u/16545391?v=3","gravatar_id":"","url":"https://api.github.com/users/yolixtly","html_url":"https://github.com/yolixtly","followers_url":"https://api.github.com/users/yolixtly/followers","following_url":"https://api.github.com/users/yolixtly/following{/other_user}","gists_url":"https://api.github.com/users/yolixtly/gists{/gist_id}","starred_url":"https://api.github.com/users/yolixtly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yolixtly/subscriptions","organizations_url":"https://api.github.com/users/yolixtly/orgs","repos_url":"https://api.github.com/users/yolixtly/repos","events_url":"https://api.github.com/users/yolixtly/events{/privacy}","received_events_url":"https://api.github.com/users/yolixtly/received_events","type":"User","site_admin":false},"repo":{"id":60784502,"name":"waitstaff-calculator","full_name":"yolixtly/waitstaff-calculator","owner":{"login":"yolixtly","id":16545391,"avatar_url":"https://avatars.githubusercontent.com/u/16545391?v=3","gravatar_id":"","url":"https://api.github.com/users/yolixtly","html_url":"https://github.com/yolixtly","followers_url":"https://api.github.com/users/yolixtly/followers","following_url":"https://api.github.com/users/yolixtly/following{/other_user}","gists_url":"https://api.github.com/users/yolixtly/gists{/gist_id}","starred_url":"https://api.github.com/users/yolixtly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yolixtly/subscriptions","organizations_url":"https://api.github.com/users/yolixtly/orgs","repos_url":"https://api.github.com/users/yolixtly/repos","events_url":"https://api.github.com/users/yolixtly/events{/privacy}","received_events_url":"https://api.github.com/users/yolixtly/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yolixtly/waitstaff-calculator","description":"Second Angular Project","fork":false,"url":"https://api.github.com/repos/yolixtly/waitstaff-calculator","forks_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/forks","keys_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/teams","hooks_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/hooks","issue_events_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/issues/events{/number}","events_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/events","assignees_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/assignees{/user}","branches_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/branches{/branch}","tags_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/tags","blobs_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/git/refs{/sha}","trees_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/statuses/{sha}","languages_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/languages","stargazers_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/stargazers","contributors_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/contributors","subscribers_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/subscribers","subscription_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/subscription","commits_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/commits{/sha}","git_commits_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/git/commits{/sha}","comments_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/comments{/number}","issue_comment_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/issues/comments{/number}","contents_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/contents/{+path}","compare_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/merges","archive_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/downloads","issues_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/issues{/number}","pulls_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/pulls{/number}","milestones_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/milestones{/number}","notifications_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/labels{/name}","releases_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/releases{/id}","deployments_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/deployments","created_at":"2016-06-09T15:15:59Z","updated_at":"2016-06-09T20:28:30Z","pushed_at":"2016-06-20T16:57:00Z","git_url":"git://github.com/yolixtly/waitstaff-calculator.git","ssh_url":"git@github.com:yolixtly/waitstaff-calculator.git","clone_url":"https://github.com/yolixtly/waitstaff-calculator.git","svn_url":"https://github.com/yolixtly/waitstaff-calculator","homepage":null,"size":1593,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"yolixtly:master","ref":"master","sha":"8e7885032966f7e66a782c901099cd8b03c8fb9d","user":{"login":"yolixtly","id":16545391,"avatar_url":"https://avatars.githubusercontent.com/u/16545391?v=3","gravatar_id":"","url":"https://api.github.com/users/yolixtly","html_url":"https://github.com/yolixtly","followers_url":"https://api.github.com/users/yolixtly/followers","following_url":"https://api.github.com/users/yolixtly/following{/other_user}","gists_url":"https://api.github.com/users/yolixtly/gists{/gist_id}","starred_url":"https://api.github.com/users/yolixtly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yolixtly/subscriptions","organizations_url":"https://api.github.com/users/yolixtly/orgs","repos_url":"https://api.github.com/users/yolixtly/repos","events_url":"https://api.github.com/users/yolixtly/events{/privacy}","received_events_url":"https://api.github.com/users/yolixtly/received_events","type":"User","site_admin":false},"repo":{"id":60784502,"name":"waitstaff-calculator","full_name":"yolixtly/waitstaff-calculator","owner":{"login":"yolixtly","id":16545391,"avatar_url":"https://avatars.githubusercontent.com/u/16545391?v=3","gravatar_id":"","url":"https://api.github.com/users/yolixtly","html_url":"https://github.com/yolixtly","followers_url":"https://api.github.com/users/yolixtly/followers","following_url":"https://api.github.com/users/yolixtly/following{/other_user}","gists_url":"https://api.github.com/users/yolixtly/gists{/gist_id}","starred_url":"https://api.github.com/users/yolixtly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yolixtly/subscriptions","organizations_url":"https://api.github.com/users/yolixtly/orgs","repos_url":"https://api.github.com/users/yolixtly/repos","events_url":"https://api.github.com/users/yolixtly/events{/privacy}","received_events_url":"https://api.github.com/users/yolixtly/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yolixtly/waitstaff-calculator","description":"Second Angular Project","fork":false,"url":"https://api.github.com/repos/yolixtly/waitstaff-calculator","forks_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/forks","keys_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/teams","hooks_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/hooks","issue_events_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/issues/events{/number}","events_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/events","assignees_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/assignees{/user}","branches_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/branches{/branch}","tags_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/tags","blobs_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/git/refs{/sha}","trees_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/statuses/{sha}","languages_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/languages","stargazers_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/stargazers","contributors_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/contributors","subscribers_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/subscribers","subscription_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/subscription","commits_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/commits{/sha}","git_commits_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/git/commits{/sha}","comments_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/comments{/number}","issue_comment_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/issues/comments{/number}","contents_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/contents/{+path}","compare_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/merges","archive_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/downloads","issues_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/issues{/number}","pulls_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/pulls{/number}","milestones_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/milestones{/number}","notifications_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/labels{/name}","releases_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/releases{/id}","deployments_url":"https://api.github.com/repos/yolixtly/waitstaff-calculator/deployments","created_at":"2016-06-09T15:15:59Z","updated_at":"2016-06-09T20:28:30Z","pushed_at":"2016-06-20T16:57:00Z","git_url":"git://github.com/yolixtly/waitstaff-calculator.git","ssh_url":"git@github.com:yolixtly/waitstaff-calculator.git","clone_url":"https://github.com/yolixtly/waitstaff-calculator.git","svn_url":"https://github.com/yolixtly/waitstaff-calculator","homepage":null,"size":1593,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yolixtly/waitstaff-calculator/pulls/1"},"html":{"href":"https://github.com/yolixtly/waitstaff-calculator/pull/1"},"issue":{"href":"https://api.github.com/repos/yolixtly/waitstaff-calculator/issues/1"},"comments":{"href":"https://api.github.com/repos/yolixtly/waitstaff-calculator/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/yolixtly/waitstaff-calculator/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/yolixtly/waitstaff-calculator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yolixtly/waitstaff-calculator/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/yolixtly/waitstaff-calculator/statuses/713afb1b57bf0ff525a8eea241b12915eba60318"}}}}
{"actor":{"display_login":"aric87"}}