This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ngMock - injector not attached to $rootElement #14022
Closed
Description
Under ngMock when injector was already created it's not connected to a $rootElement, so:
$rootElement.injector()`
returns an undefined value.
I wish to use $rootElement to create sub-elements for test purposes, then tested piece of code can use:
angular.element(localElement).injector()
to retrieve already initialised injector.