angular-ui-notification icon indicating copy to clipboard operation
angular-ui-notification copied to clipboard

Adding a custom property to scope is not documented

Open 1TheMuffinMan opened this issue 7 years ago • 1 comments

At the bottom of the documentation it says that you can add your own scope properties in addition to message and title, however there's a lot of documentation missing on that functionality.

There is no documentation that specifies that you must create your own scope, add your custom property to it and then set the undocumented scope property in the notification:

var scope = $rootScope.$new(false);
scope.event = notificationEvent;
//show toast
Notification({
    title: notificationEvent.displayText,
    scope: scope,
    templateUrl: '/client/app/core/ui/directives/events/signalrEventItem.html'
});

Would you accept a pull request for this?

1TheMuffinMan avatar May 18 '17 17:05 1TheMuffinMan

+1 For this, I needed this and couldn't know from the current docs

Thanks :)

SuigetsuSake avatar Jun 27 '17 18:06 SuigetsuSake