Angular issue with nested ng-include

Viewed 464

I encounter an issue in Angularjs when using nested ng-include with the $compile function. Here is the error:

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

I think, I have to inject the $rootElementProvider somewhere in the compile flow but I do not know how.

Here is a Plunker of my issue: http://plnkr.co/edit/K8iayGXGLx5QwHNNiLZ1?p=preview

All the code is needed, and I can not use directives nor controllers, the templates also need to be cached like this. Furthermore, If someone also know how to get rid of the $timeout service to get through the$digest already running I will be really thankful.

1 Answers
Related