Skip to content

Instantly share code, notes, and snippets.

@nidhi-canopas
Last active March 25, 2022 08:47
Show Gist options
  • Select an option

  • Save nidhi-canopas/8da06d979098f00968ba633a6133da38 to your computer and use it in GitHub Desktop.

Select an option

Save nidhi-canopas/8da06d979098f00968ba633a6133da38 to your computer and use it in GitHub Desktop.
<script>
mounted() {
console.log("I'm mounted hook");
console.log("The Dom node is ", this.$refs["greeting"]);
}
</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
I'm beforeMount hook
The Dom node is undefined
I'm mounted hook
The Dom node is <div>​Hello readers !​</div>​
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment