Skip to content

Instantly share code, notes, and snippets.

@HristoKolev
Created November 18, 2017 11:09
Show Gist options
  • Save HristoKolev/d9b06c24646e43a1dab363d208025f1a to your computer and use it in GitHub Desktop.
Save HristoKolev/d9b06c24646e43a1dab363d208025f1a to your computer and use it in GitHub Desktop.
Directives Exercise Start
<div id="app">
<div class="row">
<span>1</span>
<span>+</span>
<span>1</span>
<span>=</span>
<span>2</span>
</div>
<div class="row second">
<p>My favorite kind of taco is Al Pastor</p>
</div>
</div>
new Vue({
el: '#app',
data() {
return {
num1: 0,
num2: 0,
name: ''
}
}
})
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.3.4/vue.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.15.3/axios.min.js"></script>
$primary: #5968d7;
.row {
margin: 50px;
display: flex;
justify-content: center;
font-family: 'Work Sans', sans-serif;
}
input, span {
padding: 10px;
font-size: 30px;
font-family: 'Work Sans', sans-serif;
}
input {
width: 50px;
}
span {
width: 20px;
}
.second {
font-size: 18px;
p {
margin-left: 20px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment