{"action":"closed","issue":{"url":"https://api.github.com/repos/greencatsoft/scalajs-angular/issues/46","labels_url":"https://api.github.com/repos/greencatsoft/scalajs-angular/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/greencatsoft/scalajs-angular/issues/46/comments","events_url":"https://api.github.com/repos/greencatsoft/scalajs-angular/issues/46/events","html_url":"https://github.com/greencatsoft/scalajs-angular/issues/46","id":95709556,"number":46,"title":"compile error resulting from attaching multiple services to module","user":{"login":"ShengC","id":940628,"avatar_url":"https://avatars.githubusercontent.com/u/940628?v=3","gravatar_id":"","url":"https://api.github.com/users/ShengC","html_url":"https://github.com/ShengC","followers_url":"https://api.github.com/users/ShengC/followers","following_url":"https://api.github.com/users/ShengC/following{/other_user}","gists_url":"https://api.github.com/users/ShengC/gists{/gist_id}","starred_url":"https://api.github.com/users/ShengC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShengC/subscriptions","organizations_url":"https://api.github.com/users/ShengC/orgs","repos_url":"https://api.github.com/users/ShengC/repos","events_url":"https://api.github.com/users/ShengC/events{/privacy}","received_events_url":"https://api.github.com/users/ShengC/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/greencatsoft/scalajs-angular/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-17T17:59:01Z","updated_at":"2015-08-09T07:08:33Z","closed_at":"2015-08-09T07:08:33Z","body":"I am not even sure if this should be counted as a bug or not.. but from the implementation, it seems to allow this,\r\n\r\n    class A extends Controller[Scope] { ... }\r\n    class B extends Controller[Scope] { ... }\r\n\r\n    val module = Angular.module(\"app\", Seq.empty)\r\n    //module.controller[A].controller[B] // throws compile error    \r\n    //below compiled\r\n    module.controller[A] \r\n    module.controller[B]\r\n\r\nI have very limited knowledge in macros, but looking at the code, `internal.Angular.controllerFromClass`, after binding a `controller` class to the `module`, returns the `module` itself.\r\n\r\n    c.Expr[api.Module](q\"{${c.prefix.tree}.module.controller($proxy); ${c.prefix.tree}}\")\r\n\r\nwhat am I missing here ?"}}