{"action":"created","issue":{"url":"https://api.github.com/repos/davej/angular-classy/issues/46","labels_url":"https://api.github.com/repos/davej/angular-classy/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/davej/angular-classy/issues/46/comments","events_url":"https://api.github.com/repos/davej/angular-classy/issues/46/events","html_url":"https://github.com/davej/angular-classy/issues/46","id":84438330,"number":46,"title":"Disable the scope inclusion of all methods.","user":{"login":"fabulouslord","id":12037274,"avatar_url":"https://avatars.githubusercontent.com/u/12037274?v=3","gravatar_id":"","url":"https://api.github.com/users/fabulouslord","html_url":"https://github.com/fabulouslord","followers_url":"https://api.github.com/users/fabulouslord/followers","following_url":"https://api.github.com/users/fabulouslord/following{/other_user}","gists_url":"https://api.github.com/users/fabulouslord/gists{/gist_id}","starred_url":"https://api.github.com/users/fabulouslord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabulouslord/subscriptions","organizations_url":"https://api.github.com/users/fabulouslord/orgs","repos_url":"https://api.github.com/users/fabulouslord/repos","events_url":"https://api.github.com/users/fabulouslord/events{/privacy}","received_events_url":"https://api.github.com/users/fabulouslord/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-03T08:42:37Z","updated_at":"2015-06-03T09:00:05Z","closed_at":null,"body":"Is this possible? I would like to prefix with _ the methods utilized by other public methods but don't expose this public ones as they get put directly into the scope, which is widely recognized as a bad practice. \r\n\r\nE.g. \r\n\r\n    init : function(){\r\n        this.$scope.qt = {\r\n            user: user,\r\n            getToken: this.getToken\r\n        };\r\n    },\r\n    methods : {\r\n\t    getToken : function(){\r\n\t\t    // A method I don't want to put directly on the scope\r\n\t    }\r\n    }\r\n\r\n\r\nSo instead of calling it like\r\n\r\n    <button ng-click=\"getToken()\"></button>\r\n    \r\n    \r\nI can call it like \r\n\r\n    <button ng-click=\"qt.getToken()\"></button>\r\n\r\nbut currently the method would be still be put into the scope directly and I could call it either way, which I do not want to.\r\n\r\nI hope I make sense, and look forward to a reply. "},"comment":{"url":"https://api.github.com/repos/davej/angular-classy/issues/comments/108254255","html_url":"https://github.com/davej/angular-classy/issues/46#issuecomment-108254255","issue_url":"https://api.github.com/repos/davej/angular-classy/issues/46","id":108254255,"user":{"login":"fabulouslord","id":12037274,"avatar_url":"https://avatars.githubusercontent.com/u/12037274?v=3","gravatar_id":"","url":"https://api.github.com/users/fabulouslord","html_url":"https://github.com/fabulouslord","followers_url":"https://api.github.com/users/fabulouslord/followers","following_url":"https://api.github.com/users/fabulouslord/following{/other_user}","gists_url":"https://api.github.com/users/fabulouslord/gists{/gist_id}","starred_url":"https://api.github.com/users/fabulouslord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabulouslord/subscriptions","organizations_url":"https://api.github.com/users/fabulouslord/orgs","repos_url":"https://api.github.com/users/fabulouslord/repos","events_url":"https://api.github.com/users/fabulouslord/events{/privacy}","received_events_url":"https://api.github.com/users/fabulouslord/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T09:00:05Z","updated_at":"2015-06-03T09:00:05Z","body":"What I mean is that I don't want non \"_\" prefixed methods to be put into the scope as well, as they pollute the scope and I would like to put them into an object and expose the object instead, while still being able to utilize the underscore to denote private methods and non \"_\" prefixed methods to denote public methods. What is it that \"controller as\" syntax? , couldn't find any reference.\r\n\r\nCheers."}}