modified docusaurus admonitions to docs

This commit is contained in:
Shreedhar Hegde
2022-04-25 16:25:10 +05:30
parent 01114b42a4
commit 1d138709e2
16 changed files with 27 additions and 25 deletions

View File

@@ -77,7 +77,7 @@ class MyService extends NotificationService {
export default MyService;
```
:::note Note
:::note
A notification service must have a static property called `identifier` this is used to determine which classes are called when subscribing to different events. In this case the service identifier is `my-service` so to subscribe to notifications you must use:
`notificationService.subscribe([eventname], "my-service")`