{"action":"created","issue":{"url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/1140","labels_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/1140/labels{/name}","comments_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/1140/comments","events_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/1140/events","html_url":"https://github.com/DaftMonk/generator-angular-fullstack/issues/1140","id":99674612,"number":1140,"title":"Socket usage template suggestion","user":{"login":"smirciat","id":9876261,"avatar_url":"https://avatars.githubusercontent.com/u/9876261?v=3","gravatar_id":"","url":"https://api.github.com/users/smirciat","html_url":"https://github.com/smirciat","followers_url":"https://api.github.com/users/smirciat/followers","following_url":"https://api.github.com/users/smirciat/following{/other_user}","gists_url":"https://api.github.com/users/smirciat/gists{/gist_id}","starred_url":"https://api.github.com/users/smirciat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smirciat/subscriptions","organizations_url":"https://api.github.com/users/smirciat/orgs","repos_url":"https://api.github.com/users/smirciat/repos","events_url":"https://api.github.com/users/smirciat/events{/privacy}","received_events_url":"https://api.github.com/users/smirciat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-07T15:45:01Z","updated_at":"2015-08-12T03:57:54Z","closed_at":null,"body":"In the interest of helping novices such as myself use and understand this helpful and powerful generator, it might be helpful to explicitly show the use of a callback in the template example of the use of socket.syncUpdates within client/app/main/main.controller.js.  This way it would be obvious when learning to use socket that a callback option is included and very useful when syncing the updates.\r\n```\r\n    $http.get('/api/things').success(function(awesomeThings) {\r\n      $scope.awesomeThings = awesomeThings;<% if(filters.socketio) { %>\r\n      socket.syncUpdates('thing', $scope.awesomeThings, function(event, item, array){\r\n        //socket update callback function\r\n      });<% } %>\r\n    });\r\n```"},"comment":{"url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/comments/130153197","html_url":"https://github.com/DaftMonk/generator-angular-fullstack/issues/1140#issuecomment-130153197","issue_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/1140","id":130153197,"user":{"login":"smirciat","id":9876261,"avatar_url":"https://avatars.githubusercontent.com/u/9876261?v=3","gravatar_id":"","url":"https://api.github.com/users/smirciat","html_url":"https://github.com/smirciat","followers_url":"https://api.github.com/users/smirciat/followers","following_url":"https://api.github.com/users/smirciat/following{/other_user}","gists_url":"https://api.github.com/users/smirciat/gists{/gist_id}","starred_url":"https://api.github.com/users/smirciat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smirciat/subscriptions","organizations_url":"https://api.github.com/users/smirciat/orgs","repos_url":"https://api.github.com/users/smirciat/repos","events_url":"https://api.github.com/users/smirciat/events{/privacy}","received_events_url":"https://api.github.com/users/smirciat/received_events","type":"User","site_admin":false},"created_at":"2015-08-12T03:57:54Z","updated_at":"2015-08-12T03:57:54Z","body":"I'd have to read up on that...\r\n"}}