Skip to content

Instantly share code, notes, and snippets.

View titusdecali's full-sized avatar
🖖

Titus Decali titusdecali

🖖
View GitHub Profile
@titusdecali
titusdecali / reload.vue
Last active June 20, 2021 07:11
Vue: Reload individual component
<template>
<component-to-re-render :key="reloadMe" />
</template>
<script>
export default {
data() {
return {
@titusdecali
titusdecali / childAccessParent.js
Created June 20, 2021 09:11
Vue: Access parent's data from child with $refs
// Parent.vue
<template>
<ChildComponent ref="child" />
</template>
// In Parent.vue's methods
this.$refs.child.methodName()
@titusdecali
titusdecali / index.html
Created January 25, 2022 01:25
▶ Liquid Button v2
<svg class="liquid-button"
data-text="DIVE IN"
data-hover-factor="-30"
></svg>