@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
93 lines (46 loc) • 1.7 kB
Markdown
---
lang: en
title: 'API docs: core.lifecycleobserverregistry.notifyobservers'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/core
permalink: /doc/en/lb4/apidocs.core.lifecycleobserverregistry.notifyobservers.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/core](./core.md) > [LifeCycleObserverRegistry](./core.lifecycleobserverregistry.md) > [notifyObservers](./core.lifecycleobserverregistry.notifyobservers.md)
## LifeCycleObserverRegistry.notifyObservers() method
Notify an observer group of the given event
**Signature:**
```typescript
protected notifyObservers(observers: LifeCycleObserver[], bindings: Readonly<Binding<LifeCycleObserver>>[], event: keyof LifeCycleObserver): Promise<void>;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
observers
</td><td markdown="1">
[LifeCycleObserver](./core.lifecycleobserver.md)<!-- -->\[\]
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
bindings
</td><td markdown="1">
Readonly<[Binding](./context.binding.md)<!-- --><[LifeCycleObserver](./core.lifecycleobserver.md)<!-- -->>>\[\]
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
event
</td><td markdown="1">
keyof [LifeCycleObserver](./core.lifecycleobserver.md)
</td><td markdown="1">
Event name
</td></tr>
</tbody></table>
**Returns:**
Promise<void>