{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/10815","labels_url":"https://api.github.com/repos/angular/angular.js/issues/10815/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/10815/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/10815/events","html_url":"https://github.com/angular/angular.js/issues/10815","id":54921427,"number":10815,"title":"Controller argument description in directive link function documentation is wrong","user":{"login":"dorellang","id":6541042,"avatar_url":"https://avatars.githubusercontent.com/u/6541042?v=3","gravatar_id":"","url":"https://api.github.com/users/dorellang","html_url":"https://github.com/dorellang","followers_url":"https://api.github.com/users/dorellang/followers","following_url":"https://api.github.com/users/dorellang/following{/other_user}","gists_url":"https://api.github.com/users/dorellang/gists{/gist_id}","starred_url":"https://api.github.com/users/dorellang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dorellang/subscriptions","organizations_url":"https://api.github.com/users/dorellang/orgs","repos_url":"https://api.github.com/users/dorellang/repos","events_url":"https://api.github.com/users/dorellang/events{/privacy}","received_events_url":"https://api.github.com/users/dorellang/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular.js/labels/component%3A+%24compile","name":"component: $compile","color":"e102d8"},{"url":"https://api.github.com/repos/angular/angular.js/labels/PRs+plz%21","name":"PRs plz!","color":"02d7e1"},{"url":"https://api.github.com/repos/angular/angular.js/labels/severity%3A+confusing","name":"severity: confusing","color":"cd19e7"},{"url":"https://api.github.com/repos/angular/angular.js/labels/type%3A+docs","name":"type: docs","color":"9fe6ad"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/angular/angular.js/milestones/27","labels_url":"https://api.github.com/repos/angular/angular.js/milestones/27/labels","id":489171,"number":27,"title":"Backlog","description":"Holds the backlog of issues and pull requests that have been triaged.\r\n\r\nBefore assigning items to this milestone they should be labelled, at the very least with the correct \"type\" label (i.e. \"issue\", \"pr\", \"bug\", \"regression\", \"chore\", \"docs\", etc).  Preferably you should also check for duplicate issues/PRs, note CLA status and assign \"complexity\" and \"impact\" labels too.","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":726,"closed_issues":718,"state":"open","created_at":"2013-11-18T23:30:35Z","updated_at":"2015-01-21T09:16:56Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-01-20T18:38:12Z","updated_at":"2015-01-21T11:33:58Z","closed_at":null,"body":"The docs say in the link function argument list (https://docs.angularjs.org/api/ng/service/$compile)\r\n> `controller` - a controller instance - A controller instance if at least one directive on the element defines a controller. The controller is shared among all the directives, which allows the directives to use the controllers as a communication channel.\r\n\r\nBut this is not true as of version 1.3.x. Currently the value of this argument depends on whether the directive `require` list has been defined; if it has, then `controller` is actually a list in which the i-th value is the controller instance of the i-th directive in the `require` list. Else, `controller` is just the directive's controller instance (or `undefined` if it doesn't have one).\r\n\r\nProbably I should have sent a PR or something with the correction, but since my English kind of sucks I haven't. "},"comment":{"url":"https://api.github.com/repos/angular/angular.js/issues/comments/70822789","html_url":"https://github.com/angular/angular.js/issues/10815#issuecomment-70822789","issue_url":"https://api.github.com/repos/angular/angular.js/issues/10815","id":70822789,"user":{"login":"Narretz","id":1153097,"avatar_url":"https://avatars.githubusercontent.com/u/1153097?v=3","gravatar_id":"","url":"https://api.github.com/users/Narretz","html_url":"https://github.com/Narretz","followers_url":"https://api.github.com/users/Narretz/followers","following_url":"https://api.github.com/users/Narretz/following{/other_user}","gists_url":"https://api.github.com/users/Narretz/gists{/gist_id}","starred_url":"https://api.github.com/users/Narretz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Narretz/subscriptions","organizations_url":"https://api.github.com/users/Narretz/orgs","repos_url":"https://api.github.com/users/Narretz/repos","events_url":"https://api.github.com/users/Narretz/events{/privacy}","received_events_url":"https://api.github.com/users/Narretz/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T11:33:57Z","updated_at":"2015-01-21T11:33:57Z","body":"Yeah, that's true:\r\nOne correction to your correction:\r\nIf you use \r\n`require: 'ngModel'`\r\nthen controller is not an array. It's only an array if require is an array."}}