{"action":"closed","issue":{"url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/issues/69","repository_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js","labels_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/issues/69/comments","events_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/issues/69/events","html_url":"https://github.com/spring-guides/tut-spring-security-and-angular-js/issues/69","id":133561626,"number":69,"title":"Angular controller snippet error in accompanying tutorial","user":{"login":"ddewaele","id":364310,"avatar_url":"https://avatars.githubusercontent.com/u/364310?v=3","gravatar_id":"","url":"https://api.github.com/users/ddewaele","html_url":"https://github.com/ddewaele","followers_url":"https://api.github.com/users/ddewaele/followers","following_url":"https://api.github.com/users/ddewaele/following{/other_user}","gists_url":"https://api.github.com/users/ddewaele/gists{/gist_id}","starred_url":"https://api.github.com/users/ddewaele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddewaele/subscriptions","organizations_url":"https://api.github.com/users/ddewaele/orgs","repos_url":"https://api.github.com/users/ddewaele/repos","events_url":"https://api.github.com/users/ddewaele/events{/privacy}","received_events_url":"https://api.github.com/users/ddewaele/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-14T17:57:45Z","updated_at":"2016-02-18T09:04:29Z","closed_at":"2016-02-18T09:04:29Z","body":"in the [tutorial](https://spring.io/guides/tutorials/spring-security-and-angular-js/) accompanying this code, in the section ```Loading a Dynamic Resource from Angular```, the greeting isn't put on the scope I suppose the user won't see the dynamic content on the page.\r\n\r\nShouldn't the controller looks something like this ? : \r\n\r\n```\r\nangular.module('hello', [])\r\n  .controller('home', function($scope,$http) {\r\n  $http.get('/resource/').success(function(data) {\r\n    $scope.greeting = data;\r\n  })\r\n});\r\n```"}}