What is Vue?ย
Telling the computer what to do
The Process of creating Software
Design and build an executable program by:
And also while:
(Just a few historical milestone, not the whole History)
out of thin air
Me, debugging my code
Front End / Front-end / Frontend / FrontEnd
.Net, C#, Python...
โ
โ
โ
โ
โ
โ
Commonly used with JS frameworks.
๐ Demo ๐
ย
The biggest, by far, improvement these frameworks provide is having the ability to implement UIs that are guaranteed to be in sync with the internal state of the application
Alberto Gimeno
<div id="simplest-example">
<h1>{{ whatever }}</h1>
</div>
<script>
new Vue({
ย el: '#simplest-example',
ย data: {
ย ย whatever: 'Hello world',
ย }
})
</script>
Vue components extend basic HTML elements to encapsulate reusable code.
<div id="app">
<button-clicked></button-clicked>
</div>
<script>
Vue.component(
'button-clicked',
{
data: () => ({
count: 0,
}),
template: `
<button
v-on:click="onClick"
>
Clicked {{ count }} times
</button>
`,
methods: {
onClick() {
this.count += 1;
}
},
}
);
new Vue({
el: '#app',
});
</script>