src/directives/toast/toast.directive.js
Function toast
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function toast($injector, $interval, toastrConfig, toastr) {
return {
templateUrl: function() {
return toastrConfig.templates.toast;
},
Function toastLinkFunction
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function toastLinkFunction(scope, element, attrs, toastCtrl) {
var timeout;
scope.toastClass = scope.options.toastClass;
scope.titleClass = scope.options.titleClass;