{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/5893","labels_url":"https://api.github.com/repos/angular/angular.js/issues/5893/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/5893/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/5893/events","html_url":"https://github.com/angular/angular.js/issues/5893","id":25916587,"number":5893,"title":"feat(directive): Add ability to inject required controllers into the controller function","user":{"login":"maklemenz","id":1707463,"avatar_url":"https://avatars.githubusercontent.com/u/1707463?v=3","gravatar_id":"","url":"https://api.github.com/users/maklemenz","html_url":"https://github.com/maklemenz","followers_url":"https://api.github.com/users/maklemenz/followers","following_url":"https://api.github.com/users/maklemenz/following{/other_user}","gists_url":"https://api.github.com/users/maklemenz/gists{/gist_id}","starred_url":"https://api.github.com/users/maklemenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maklemenz/subscriptions","organizations_url":"https://api.github.com/users/maklemenz/orgs","repos_url":"https://api.github.com/users/maklemenz/repos","events_url":"https://api.github.com/users/maklemenz/events{/privacy}","received_events_url":"https://api.github.com/users/maklemenz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular.js/labels/component:%20$compile","name":"component: $compile","color":"e102d8"},{"url":"https://api.github.com/repos/angular/angular.js/labels/frequency:%20low","name":"frequency: low","color":"bfe5bf"},{"url":"https://api.github.com/repos/angular/angular.js/labels/frequency:%20moderate","name":"frequency: moderate","color":"fef2c0"},{"url":"https://api.github.com/repos/angular/angular.js/labels/severity:%20inconvenient","name":"severity: inconvenient","color":"006b75"},{"url":"https://api.github.com/repos/angular/angular.js/labels/type:%20feature","name":"type: feature","color":"00a606"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/angular/angular.js/milestones/38","html_url":"https://github.com/angular/angular.js/milestones/Ice%20Box","labels_url":"https://api.github.com/repos/angular/angular.js/milestones/38/labels","id":529901,"number":38,"title":"Ice Box","description":"Milestone for valid issues and bugs that we have no aspirations on fixing any time soon because they are not affecting primary use-cases and are not aligned with our goals.","creator":{"login":"IgorMinar","id":216296,"avatar_url":"https://avatars.githubusercontent.com/u/216296?v=3","gravatar_id":"","url":"https://api.github.com/users/IgorMinar","html_url":"https://github.com/IgorMinar","followers_url":"https://api.github.com/users/IgorMinar/followers","following_url":"https://api.github.com/users/IgorMinar/following{/other_user}","gists_url":"https://api.github.com/users/IgorMinar/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorMinar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorMinar/subscriptions","organizations_url":"https://api.github.com/users/IgorMinar/orgs","repos_url":"https://api.github.com/users/IgorMinar/repos","events_url":"https://api.github.com/users/IgorMinar/events{/privacy}","received_events_url":"https://api.github.com/users/IgorMinar/received_events","type":"User","site_admin":false},"open_issues":177,"closed_issues":128,"state":"open","created_at":"2014-01-08T08:19:21Z","updated_at":"2015-10-03T09:23:29Z","due_on":null,"closed_at":null},"comments":20,"created_at":"2014-01-20T12:44:22Z","updated_at":"2015-10-05T13:44:29Z","closed_at":null,"body":"**quick overview**\r\nYou have the directives A, B and C\r\nB requires A, \r\nC requires B\r\n\r\nThe methods in C need to call methods in the controller of B.\r\nThe methods in the controller of B need call methods in the controller of A.\r\n\r\nThe controller of B cannot know the controller of A because it can only be passed into the link-function of B.\r\n\r\n**more details**\r\nhttp://stackoverflow.com/questions/21231294/angularjs-inject-required-directive-controller-into-the-controller-instead-of-t/21231428\r\n\r\nActually there is a workaround that is too complicated for such an easy problem.\r\n\r\nEven the ngModelController does use another workaround with a feature that seems to be undocumented: the binding of directive controllers to the directive-elements data property:\r\nhttps://github.com/angular/angular.js/blob/5adea0ba64b758f8f5700da73f6faca8ae1983be/src/ng/directive/input.js#L969"},"comment":{"url":"https://api.github.com/repos/angular/angular.js/issues/comments/145531603","html_url":"https://github.com/angular/angular.js/issues/5893#issuecomment-145531603","issue_url":"https://api.github.com/repos/angular/angular.js/issues/5893","id":145531603,"user":{"login":"ciccia","id":3997558,"avatar_url":"https://avatars.githubusercontent.com/u/3997558?v=3","gravatar_id":"","url":"https://api.github.com/users/ciccia","html_url":"https://github.com/ciccia","followers_url":"https://api.github.com/users/ciccia/followers","following_url":"https://api.github.com/users/ciccia/following{/other_user}","gists_url":"https://api.github.com/users/ciccia/gists{/gist_id}","starred_url":"https://api.github.com/users/ciccia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciccia/subscriptions","organizations_url":"https://api.github.com/users/ciccia/orgs","repos_url":"https://api.github.com/users/ciccia/repos","events_url":"https://api.github.com/users/ciccia/events{/privacy}","received_events_url":"https://api.github.com/users/ciccia/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T13:44:29Z","updated_at":"2015-10-05T13:44:29Z","body":"+1"}}