- Basics
- The Cascade
- Specificity
- Box Model
This file contains 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
#!/bin/sh | |
search_dir="/Users/alexgonzalez/Desktop/Code/form-flow/src/test/resources/templates" | |
# for each file in search directory and subdirectories, do the following | |
find "$search_dir" -type f -name "*.html" | while read file; do | |
sed -n ' | |
/\(fragments.*\)"/ { | |
s/\(fragments.*\)"/~{\1}"/g | |
p |
This file contains 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> | |
Search for <input v-model="searchInput" /> | |
<div> | |
<p>Number of events: {{ results }}</p> | |
</div> | |
</div> | |
</template> | |
<script> |
This file contains 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> | |
import { onBeforeMount, onMounted } from "vue"; | |
export default { | |
setup() { | |
onBeforeMount(() => { | |
console.log("Before mount!"); | |
}); | |
onMounted(() => { |
This file contains 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> | |
<p> | |
Spaces left: {{ spacesLeft }} out of {{ capacity }} | |
</p> | |
<button @click="increaseCapacity">Increase Capacity</button> | |
<h2>Attending</h2> | |
<ul> | |
<li | |
v-for="(name, index) in attending" | |
:key="index" |
This file contains 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> | |
<p> | |
Spaces left: {{ spacesLeft }} out of {{ capacity }} | |
</p> | |
<button @click="increaseCapacity">Increase Capacity</button> | |
<h2>Attending</h2> | |
<ul> | |
<li | |
v-for="(name, index) in attending" | |
:key="index" |
This file contains 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> | |
<p> | |
Spaces left: {{ spacesLeft }} out of {{ capacity }} | |
</p> | |
<button @click="increaseCapacity">Increase Capacity</button> | |
<h2>Attending</h2> | |
<ul> | |
<li | |
v-for="(name, index) in attending" | |
:key="index" |
This file contains 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>Capacity: {{ capacity }}</div> | |
<button @click="increaseCapacity">Increase Capacity</button> | |
</template> | |
<script> | |
import { ref } from "vue"; | |
export default { | |
setup() { |
This file contains 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>Capacity: {{ capacity }}</div> | |
</template> | |
<script> | |
import { ref } from 'vue'; | |
export default { | |
setup() { | |
const capacity = ref(3); // Ref is used to wrap a primitive (number) inside of a reactive reference (object) |
NewerOlder