0

I issued toastr.error("a message") but got this error. It happens in _setContainer when it does $animate.enter().then(function()). What am I missing?

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;
}
Jay Harris
  • 4,201
  • 17
  • 21

1 Answers1

2

The version of angular-toastr that is supported with angular@1.2 is 0.3.0

Tony BenBrahim
  • 7,040
  • 2
  • 36
  • 49