docs(README): fix emitter typo (#517)
This commit is contained in:
committed by
Yoshua Wuyts
parent
bfa245edfc
commit
fc92f8eaad
@@ -261,7 +261,7 @@ Choo fires messages when certain events happen:
|
|||||||
|
|
||||||
The `render` event should be emitted (`emitter.emit('render')`) whenever you want the app to re-render the DOM - it won't happen on its own except when you navigate between routes.
|
The `render` event should be emitted (`emitter.emit('render')`) whenever you want the app to re-render the DOM - it won't happen on its own except when you navigate between routes.
|
||||||
|
|
||||||
The `pushState` can be emitted to navigate between routes: `emitted.emit('pushState', '/some/route')`.
|
The `pushState` can be emitted to navigate between routes: `emitter.emit('pushState', '/some/route')`.
|
||||||
You can emit `replaceState` which will overwrite the current entry in the browser history, but be very careful as this removes the option of navigating back!
|
You can emit `replaceState` which will overwrite the current entry in the browser history, but be very careful as this removes the option of navigating back!
|
||||||
|
|
||||||
Note `render` will only have an effect once the `DOMContentLoaded` event has been fired.
|
Note `render` will only have an effect once the `DOMContentLoaded` event has been fired.
|
||||||
|
|||||||
Reference in New Issue
Block a user