Hello I am trying to manually bootstrap an angular app, but there is some business that needs to be taken care of first.This article mentions the technique I am interested in.
when I inject this:
var $injector = angular.injector(["ng"]);
var $http = $injector.get("$http");
it works fine, but this:
var $injector= angular.injector(["ng", "myApp"]);
var $location = $injector.get("$location");
Throws the following error.
Uncaught Error: [$injector:unpr] Unknown provider: $rootElementProvider <- $rootElement <- $location <- $location
Is it possible to get $location prior to angular.bootstrap?
Thanks a ton!