Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issues with angular material #6

Open
alienatorZ opened this issue Dec 28, 2016 · 3 comments
Open

issues with angular material #6

alienatorZ opened this issue Dec 28, 2016 · 3 comments

Comments

@alienatorZ
Copy link

Creating a component using angular material and adding the appropriate @javascript annotations I get:

angular.module('taskViewModule',['ngSanitize','ngMaterial']) causes

SEVERE: Error sending state change eventscom.google.gwt.event.shared.UmbrellaException: Exception caught: (Error) : [$injector:unpr] http://errors.angularjs.org/1.5.5/$injector/unpr?p0=%24rootElementProvider%…eQueue%20%3C-%20%24animate%20%3C-%20%24compile%20%3C-%20%24%24animateQueue

when I take away 'ngMaterial' it works.

@alienatorZ
Copy link
Author

alienatorZ commented Dec 28, 2016

On further analysis it seems that if I add the code
`
var rootElement = angular.element(document);
angular.module(innerModuleName).provider({
$rootElement:function() {
this.$get = function() {
return rootElement;
};
}
});

`

to line 39 of NgTemplatePlus.js the problem is resolved.

@sebastianrothbucher
Copy link
Contributor

that is great! Can you do a PR and I'm happy to merge it...! Thanks a lot

@sebastianrothbucher
Copy link
Contributor

otherwise I can do it, just let me know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants