Last active
March 25, 2022 06:38
-
-
Save nidhi-canopas/9cd837081108f5f42cd90b226ae2794d 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
| <script> | |
| created() { | |
| console.log("I'm created hook"); | |
| console.log("Bob is currently ", this.stateOfBob); | |
| this.stateOfBob = "awakened but still sleeping"; | |
| console.log("Bob is currently ", this.stateOfBob); | |
| console.log("computed hook is returning ", this.test); | |
| } | |
| </script> | |
| 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment