{"action":"closed","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/13972","repository_url":"https://api.github.com/repos/angular/angular.js","labels_url":"https://api.github.com/repos/angular/angular.js/issues/13972/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/13972/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/13972/events","html_url":"https://github.com/angular/angular.js/issues/13972","id":132078385,"number":13972,"title":"this.component is not a function","user":{"login":"huineng","id":3482445,"avatar_url":"https://avatars.githubusercontent.com/u/3482445?v=3","gravatar_id":"","url":"https://api.github.com/users/huineng","html_url":"https://github.com/huineng","followers_url":"https://api.github.com/users/huineng/followers","following_url":"https://api.github.com/users/huineng/following{/other_user}","gists_url":"https://api.github.com/users/huineng/gists{/gist_id}","starred_url":"https://api.github.com/users/huineng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huineng/subscriptions","organizations_url":"https://api.github.com/users/huineng/orgs","repos_url":"https://api.github.com/users/huineng/repos","events_url":"https://api.github.com/users/huineng/events{/privacy}","received_events_url":"https://api.github.com/users/huineng/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-08T08:13:41Z","updated_at":"2016-02-08T09:33:20Z","closed_at":"2016-02-08T09:33:20Z","body":"I'm trying to register a new component using angular 1.5\r\nAll works fine except for this last line \r\n\r\nthis.component = function registerComponent(name, options) {.........\r\n........\r\nfactory.$inject = ['$injector'];\r\nreturn this.directive(name, factory);  ->   TypeError: this.directive is not a function"}}