Last active
March 25, 2022 06:26
-
-
Save nidhi-canopas/9a4fa0472637a2d87888c39a1c8b6d08 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div ref="greeting">Hello readers !</div> | |
| </template> | |
| <script> | |
| beforeMount() { | |
| console.log("I'm beforeMount hook"); | |
| console.log("The Dom node is ", this.$refs["greeting"]); | |
| }, | |
| </scrip> | |
| Output: | |
| I'm setup hook | |
| I'm beforeCreate hook | |
| Bob is currently undefined | |
| computed hook is returning undefined | |
| I'm data hook | |
| I'm created hook | |
| Bob is currently sleeping | |
| Bob is currently awakened but still sleeping | |
| computed hook is returning I'm computed hook | |
| I'm beforeMount hook | |
| The Dom node is undefined | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment