Last active
June 24, 2018 09:04
-
-
Save firminochangani/7dcc4835ca8ad2e11afa489ab0257074 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
<body> | |
<div id="app"> | |
<h1>Vue Search</h1> | |
<br> | |
<!-- Search field --> | |
<input | |
type="text" | |
placeholder="Search for a Country" | |
> | |
<ul> | |
<li> | |
Random Country | |
</li> | |
</ul> | |
</div> | |
<!-- Importing --> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.0.3/vue.js"></script> | |
</body> |
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
// Load this file after loading the vue library / framework | |
const app = { | |
"el": "#app", | |
data(){ | |
return { | |
countries: [], | |
search: '' | |
}; | |
}, | |
created() { | |
console.log('Hello Vue App'); | |
} | |
} | |
new Vue(app); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment