-
Notifications
You must be signed in to change notification settings - Fork 90
Convert notification module #380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert notification module #380
Conversation
ctrl.updateShowClose(); | ||
} | ||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trying out Object.defineProperty? Couldn't this also be handled by $onChanges?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'd have to change showClose from @ to < to do that, I was trying to leave the interface the same so it can use {{ }}. I don't mind changing and documenting if you prefer @dtaylor113
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I think it preferable to keep the API the same. -thanks!
$scope.types = ['success','info','danger', 'warning']; | ||
$scope.type = $scope.types[0]; | ||
$scope.isPersistent = false; | ||
$scope.notifications = $rootScope.notifications; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this still being used? I don't see where.
After making the notification persistent and then hitting the X to remove it, the demo becomes broken. |
…o component style
…ctionality change
78d098e
to
d2aa17d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Converts notification directives to component style, also includes making sure test and lint works correctly.
Notification service also converted to not use $rootScope any longer.