{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/7023","labels_url":"https://api.github.com/repos/angular/angular.js/issues/7023/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/7023/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/7023/events","html_url":"https://github.com/angular/angular.js/issues/7023","id":30956409,"number":7023,"title":"Unknown provider: $rootElementProvider <- $rootElement <- $location","user":{"login":"alexfalkowski","id":676531,"avatar_url":"https://avatars.githubusercontent.com/u/676531?v=3","gravatar_id":"","url":"https://api.github.com/users/alexfalkowski","html_url":"https://github.com/alexfalkowski","followers_url":"https://api.github.com/users/alexfalkowski/followers","following_url":"https://api.github.com/users/alexfalkowski/following{/other_user}","gists_url":"https://api.github.com/users/alexfalkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/alexfalkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexfalkowski/subscriptions","organizations_url":"https://api.github.com/users/alexfalkowski/orgs","repos_url":"https://api.github.com/users/alexfalkowski/repos","events_url":"https://api.github.com/users/alexfalkowski/events{/privacy}","received_events_url":"https://api.github.com/users/alexfalkowski/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-04-07T03:31:33Z","updated_at":"2015-09-09T09:22:48Z","closed_at":"2014-04-07T04:40:57Z","body":"Hi All,\r\n\r\nI am not sure if this is an issue or not. When I run this code:\r\n\r\nvar myModule = angular.module('TestModule', []);\r\nvar injector = angular.injector(['TestModule', 'ng']);\r\nvar location = injector.get('$location');\r\n\r\nI get the following exception\r\n\r\nUncaught Error: [$injector:unpr] Unknown provider: $rootElementProvider <- $rootElement <- $location\r\n\r\nThis seems to happen for all version in 1.2.\r\n\r\nRegards,\r\nAlex"},"comment":{"url":"https://api.github.com/repos/angular/angular.js/issues/comments/138851991","html_url":"https://github.com/angular/angular.js/issues/7023#issuecomment-138851991","issue_url":"https://api.github.com/repos/angular/angular.js/issues/7023","id":138851991,"user":{"login":"mjrk","id":2457107,"avatar_url":"https://avatars.githubusercontent.com/u/2457107?v=3","gravatar_id":"","url":"https://api.github.com/users/mjrk","html_url":"https://github.com/mjrk","followers_url":"https://api.github.com/users/mjrk/followers","following_url":"https://api.github.com/users/mjrk/following{/other_user}","gists_url":"https://api.github.com/users/mjrk/gists{/gist_id}","starred_url":"https://api.github.com/users/mjrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjrk/subscriptions","organizations_url":"https://api.github.com/users/mjrk/orgs","repos_url":"https://api.github.com/users/mjrk/repos","events_url":"https://api.github.com/users/mjrk/events{/privacy}","received_events_url":"https://api.github.com/users/mjrk/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T09:22:48Z","updated_at":"2015-09-09T09:22:48Z","body":"@caitp thanks for your idea.\r\n\r\nHowever, at the end, what is jqLite and how to get the injector for an already created module?"}}