-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
Hey, great little service! I did notice that the message continues to take up space in the dom after it is 'closed'. This seems to be because inside the directive you are leaving the message object on the scope instead of clearing it out.
If you add $scope.flash = {} to the flash-directive on line 26 it'll fix it.
$scope.hide = function () {
removeAlertClasses();
if (!isBlank(attr.activeClass)) {
element.removeClass(attr.activeClass);
}
$scope.flash = {};
};
Metadata
Metadata
Assignees
Labels
No labels