Skip to content

Commit 7cb981c

Browse files
Knogobertchrisvfritz
authored andcommitted
Added details about Lifecycle Hooks (#1664)
* Added details about Lifecycle Hooks Mostly a clarification for beginners without prior knowledge about what Lifecycle hooks are. Makes it easier to understand when perhaps only knowing that the developer has a `mounted()` hook. I left out the function syntax because of generality. Add if it makes more sense to add. I am not fully knowledgable in Vue yet. * add (de)activated to lifecycle hooks list in style guide
1 parent f3d9557 commit 7cb981c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/v2/style-guide/index.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,6 +1514,16 @@ This is the default order we recommend for component options. They're split into
15141514
9. **Events** (callbacks triggered by reactive events)
15151515
- `watch`
15161516
- Lifecycle Events (in the order they are called)
1517+
- `beforeCreate`
1518+
- `created`
1519+
- `beforeMount`
1520+
- `mounted`
1521+
- `beforeUpdate`
1522+
- `updated`
1523+
- `activated`
1524+
- `deactivated`
1525+
- `beforeDestroy`
1526+
- `destroyed`
15171527

15181528
10. **Non-Reactive Properties** (instance properties independent of the reactivity system)
15191529
- `methods`

0 commit comments

Comments
 (0)