modified docusaurus admonitions to docs

This commit is contained in:
Shreedhar Hegde
2022-04-28 08:28:21 +05:30
parent 1241fb7b2c
commit e008814b2a
16 changed files with 27 additions and 25 deletions
+1 -1
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")`