docs: correct typos in documentation (#4413)

* Correct typos in documentation

* Remove changes to References directory

---------

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
This commit is contained in:
Bhyn
2023-07-10 22:36:23 +10:00
committed by GitHub
parent 78a1f3943b
commit 6c3eeb8d18
29 changed files with 32 additions and 32 deletions

View File

@@ -9,7 +9,7 @@ In this document, youll learn how to create a [Subscriber](./subscribers.mdx)
## Implementation
A subscriber is a TypeScript or JavaScript file that is created under `src/subscribers`. Its file name, by convension, should be the class name of the subscriber without the word `Subscriber`. For example, if the subscriber is `HelloSubscriber`, the file name should be `hello.ts`.
A subscriber is a TypeScript or JavaScript file that is created under `src/subscribers`. Its file name, by convention, should be the class name of the subscriber without the word `Subscriber`. For example, if the subscriber is `HelloSubscriber`, the file name should be `hello.ts`.
After creating the file under `src/subscribers`, in the constructor of your subscriber, listen to events using `eventBusService.subscribe` , where `eventBusService` is a service injected into your subscribers constructor.