Skip to content

Instantly share code, notes, and snippets.

@firminochangani
Last active June 24, 2018 09:04
Show Gist options
  • Save firminochangani/7dcc4835ca8ad2e11afa489ab0257074 to your computer and use it in GitHub Desktop.
Save firminochangani/7dcc4835ca8ad2e11afa489ab0257074 to your computer and use it in GitHub Desktop.
<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>
// 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