Saltar al contenido principal
NeuralUIv1.14.3Nuevo
GitHub
Componente

Notification Center

Centro de notificaciones con panel desplegable, contador de no leídas y gestión mediante servicio inyectable.

TypeScript
import {
  NeuNotificationCenterComponent,
  NeuNotificationService,
} from '@neural-ui/core/notification-center';

No leídas: 0

TypeScript
import { NeuNotificationCenterComponent, NeuNotificationService } from '@neural-ui/core/notification-center';

// 1. Place the component in your toolbar once:
// <neu-notification-center />

// 2. Use the service from any class:
@Component({ ... })
export class MyComponent {
  private readonly _notif = inject(NeuNotificationService);

  doAction() {
    this._notif.push({
      type: 'success',
      title: 'Done!',
      message: 'The operation completed successfully.',
    });
  }
}