Skip to content

Commit 02ec3e1

Browse files
committed
docs: note about feathers-rest and Model events
1 parent eb3c2ba commit 02ec3e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/model-classes.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ Remove an event handler.
145145

146146
## Model Events <Badge text="2.3.0+" />
147147

148-
Model classes are EventEmitter instances which emit service events when received (technically, EventEmitter methods are mixed onto each Model class). All FeathersJS events are supported. Here’s an example of how to use it in a component:
148+
Model classes are EventEmitter instances which emit service events when received (technically, EventEmitter methods are mixed onto each Model class). All FeathersJS events are supported. Oh, and one more thing: it works with `feathers-rest` (you won't receive socket events, but you can listen for when instances are created in other parts of the app.)
149+
150+
Here’s an example of how to use it in a component:
149151

150152
```js
151153
export default {

0 commit comments

Comments
 (0)