Skip to content
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.

Unknown provider: $rootElementProvider <- $rootElement <- $location #7023

@alexfalkowski

Description

@alexfalkowski

Hi All,

I am not sure if this is an issue or not. When I run this code:

var myModule = angular.module('TestModule', []);
var injector = angular.injector(['TestModule', 'ng']);
var location = injector.get('$location');

I get the following exception

Uncaught Error: [$injector:unpr] Unknown provider: $rootElementProvider <- $rootElement <- $location

This seems to happen for all version in 1.2.

Regards,
Alex

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions