Skip to content

issues with angular material  #6

Description

@alienatorZ

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.

Activity

  1. alienatorZ commented on Dec 28, 2016

    @alienatorZ
    Author

    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.

  2. sebastianrothbucher commented on Jan 9, 2017

    @sebastianrothbucher
    Contributor

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

  3. sebastianrothbucher commented on Jan 9, 2017

    @sebastianrothbucher
    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

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