alexcrack / alexcrack/angular-ui-notification

Adding a custom property to scope is not documented

Abierto
#129 1 comentario 2 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
529
Forks
164
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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?

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.