0

我发出toastr.error("a message")但收到此错误。它发生在它发生的_setContainer时候$animate.enter().then(function())。我错过了什么?

function _setContainer(options) {
  if(container) { return containerDefer.promise; } // If the container is there, don't create it.

  container = angular.element('<div></div>');
  container.attr('id', options.containerId);
  container.addClass(options.positionClass);
  container.css({'pointer-events': 'auto'});
  var body = $document.find('body').eq(0);
  $animate.enter(container, body).then(function() {
    containerDefer.resolve();
  });
  return containerDefer.promise;
}
4

1 回答 1

2

angular@1.2 支持的 angular-toastr 版本是 0.3.0

于 2014-12-17T16:11:36.587 回答