{"action":"created","issue":{"url":"https://api.github.com/repos/johnpapa/angular-styleguide/issues/388","labels_url":"https://api.github.com/repos/johnpapa/angular-styleguide/issues/388/labels{/name}","comments_url":"https://api.github.com/repos/johnpapa/angular-styleguide/issues/388/comments","events_url":"https://api.github.com/repos/johnpapa/angular-styleguide/issues/388/events","html_url":"https://github.com/johnpapa/angular-styleguide/issues/388","id":71833712,"number":388,"title":"angular-style in coffeescript?","user":{"login":"kcliu","id":161968,"avatar_url":"https://avatars.githubusercontent.com/u/161968?v=3","gravatar_id":"","url":"https://api.github.com/users/kcliu","html_url":"https://github.com/kcliu","followers_url":"https://api.github.com/users/kcliu/followers","following_url":"https://api.github.com/users/kcliu/following{/other_user}","gists_url":"https://api.github.com/users/kcliu/gists{/gist_id}","starred_url":"https://api.github.com/users/kcliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcliu/subscriptions","organizations_url":"https://api.github.com/users/kcliu/orgs","repos_url":"https://api.github.com/users/kcliu/repos","events_url":"https://api.github.com/users/kcliu/events{/privacy}","received_events_url":"https://api.github.com/users/kcliu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-29T10:05:21Z","updated_at":"2015-04-29T21:11:19Z","closed_at":null,"body":"Since CoffeeScript doesn't support function declaration  (https://github.com/jashkenas/coffeescript/issues/1640) \r\n\r\nhow to implement some patterns use function declaration in angular-styleguide?"},"comment":{"url":"https://api.github.com/repos/johnpapa/angular-styleguide/issues/comments/97586679","html_url":"https://github.com/johnpapa/angular-styleguide/issues/388#issuecomment-97586679","issue_url":"https://api.github.com/repos/johnpapa/angular-styleguide/issues/388","id":97586679,"user":{"login":"jimlei","id":4523053,"avatar_url":"https://avatars.githubusercontent.com/u/4523053?v=3","gravatar_id":"","url":"https://api.github.com/users/jimlei","html_url":"https://github.com/jimlei","followers_url":"https://api.github.com/users/jimlei/followers","following_url":"https://api.github.com/users/jimlei/following{/other_user}","gists_url":"https://api.github.com/users/jimlei/gists{/gist_id}","starred_url":"https://api.github.com/users/jimlei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimlei/subscriptions","organizations_url":"https://api.github.com/users/jimlei/orgs","repos_url":"https://api.github.com/users/jimlei/repos","events_url":"https://api.github.com/users/jimlei/events{/privacy}","received_events_url":"https://api.github.com/users/jimlei/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T21:11:19Z","updated_at":"2015-04-29T21:11:19Z","body":"@kcliu I'd suggest looking into using [ng-classify](https://github.com/CaryLandholt/ng-classify)\r\n\r\nIt does not adhere to these guidelines perfectly, but the base principle is to keep the code tidy and readable, which I most definitely think is achieved. The big drawback is perhaps using anonymous functions in callbacks, but as you say it simply does not support it."}}