Node.js & NPM
Windows
Ubuntu & Mac
sudo apt-get install curlcurl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -sudo apt-get install nodejsGit & Github
Windows
Ubuntu & Mac
sudo apt-get install gitVisual Studio Code
Mac, Linux & Windows
Extension (Vetur)
Ctrl+Phttps://marketplace.visualstudio.com/items?itemName=octref.veturVue CLI
npm install -g @vue/cliyarn global add @vue/cliOR
v-text
v-html
v-show
v-if
v-else
v-else-if
v-for
v-on
v-bind
v-model
v-pre
v-cloak
v-once
hello-worldhttps://github.com/kcsuraj/vue-workshop.git
Challenge
hello-world-solutionSolution
calculator-favorite-moviehttps://github.com/kcsuraj/vue-workshop.git
Challenge
calculator-favorite-movie-solutionSolution
Are bound to the Vue instance, they are incredibly useful for functions you would like to access in directives
counterhttps://github.com/kcsuraj/vue-workshop.git
Challenge
counter-solutionSolution
add-comment-in-photohttps://github.com/kcsuraj/vue-workshop.git
Challenge
add-comment-in-photo-solutionSolution
vue-registration-formhttps://github.com/kcsuraj/vue-workshop.git
Challenge
vue-registration-form-solutionSolution
Computed properties are calculations that will be cached and will only update when needed.
Highly performant but use with understanding.
netflix-ratingshttps://github.com/kcsuraj/vue-workshop.git
Challenge
netflix-ratings-solutionSolution
Good for asynchronous updates,
and updates/transitions with data changes
hacker-newshttps://github.com/kcsuraj/vue-workshop.git
Challenge
hacker-news-solutionSolution
Vue.js uses HTML-based template syntax to bind the Vue instance to the DOM, very useful for components.
Templates are optional, you can also write render functions with optional JSX support.
A collection of elements that are encapsulated into a group that can be accessed through one single element.
<nav>
<a href="">
<img src=""></img>
</a>
<ul>
<li></li>
<li></li>
</ul>
</nav><navbar></navbar>hacker-news-componentshttps://github.com/kcsuraj/vue-workshop.git
Challenge
hacker-news-components-solutionSolution
a parent component to pass DOM elements into a child component
modalhttps://github.com/kcsuraj/vue-workshop.git
Challenge
modal-solutionSolution
form-componenthttps://github.com/kcsuraj/vue-workshop.git
Challenge
form-component-solutionSolution
integrates with Vue.js core to make building Single Page Applications with Vue.js a breeze
npm install --save vue-router//Router.vue
import Vue from "vue";
import Router from "vue-router";
import HelloWorld from "../components/HelloWorld";
Vue.use(Router);
export default new Router({
routes: [
{
path: "/",
name: "HelloWorld",
component: HelloWorld
}
]
});
//App.vue
<template>
<div id="app">
<img alt="Vue logo" src="./assets/logo.png" />
<router-view />
</div>
</template>//main.js
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
Vue.config.productionTip = false;
new Vue({
render: h => h(App),
router,
components: { App }
}).$mount("#app");