Я пытаюсь использовать Toastr
с angular js
, но получает следующую ошибку. Я включил jqery.js
файл, как ожидалось.Toastr не работает с angularjs
src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"
Сообщение об ошибке:
angular.js:11594 TypeError: Cannot read property 'extend' of undefined
at m (toastr.js:474)
at Object.o [as info] (toastr.js:474)
at ProductTableController.showAddToCartToast (productTable.directive.js:207)
at ProductTableController.addToCart (productTable.directive.js:159)
at angular.js:12332
at f (angular.js:22949)
at a.$$ChildScope.$$ChildScope.$eval (angular.js:14383)
at a.$$ChildScope.$$ChildScope.$apply (angular.js:14482)
at HTMLButtonElement.<anonymous> (angular.js:22954)
at HTMLButtonElement.dispatch (jquery.js:4670)(anonymous function) @ angular.js:11594(anonymous function) @ angular.js:8544$apply @ angular.js:14484(anonymous function) @ angular.js:22954dispatch @ jquery.js:4670r.handle @ jquery.js:4338
Любая идея, что случилось?
Спасибо.
любая ошибка, которую вы получаете в консоли? –
Нет, только тот, который я добавил в вопрос. – Ahsan
demo http://codeseven.github.io/toastr/demo.html – Pravin