Browse Source

Fix typo for 'initialized'

Fix typo for word 'initialized' in 'Components' docs
pull/3084/head
Arun Kumar 5 years ago
committed by GitHub
parent
commit
a8a761ab07
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      docs/modules/Components.md

4
docs/modules/Components.md

@ -684,10 +684,10 @@ use of them for a more generic use case or also listen to them inside other comp
Let's see below the flow of all hooks: Let's see below the flow of all hooks:
* **Local hook**: `model.init()` method, executed once the model of the component is initiliazed * **Local hook**: `model.init()` method, executed once the model of the component is initialized
* **Global hook**: `component:create` event, called right after `model.init()`. The model is passed as an argument to the callback function. * **Global hook**: `component:create` event, called right after `model.init()`. The model is passed as an argument to the callback function.
Es. `editor.on('component:create', model => console.log('created', model))` Es. `editor.on('component:create', model => console.log('created', model))`
* **Local hook**: `view.init()` method, executed once the view of the component is initiliazed * **Local hook**: `view.init()` method, executed once the view of the component is initialized
* **Local hook**: `view.onRender()` method, executed once the component is rendered on the canvas * **Local hook**: `view.onRender()` method, executed once the component is rendered on the canvas
* **Global hook**: `component:mount` event, called right after `view.onRender()`. The model is passed as an argument to the callback function. * **Global hook**: `component:mount` event, called right after `view.onRender()`. The model is passed as an argument to the callback function.
* **Local hook**: `model.updated()` method, executes when some property of the model is updated. * **Local hook**: `model.updated()` method, executes when some property of the model is updated.

Loading…
Cancel
Save