Upgrade to Pro — share decks privately, control downloads, hide ads and more …

An Actually Good Intro Vue Presentation

An Actually Good Intro Vue Presentation

An Introduction Presentation to Vue. Briefly touches on the history of modifying the DOM from JavaScript. And then jumps into the core concepts of Vue from the Single File Components, Properties, Emitters, Router, Vuex, etc. Come learn about Vue with
us!

Originally presented at SLC Frontend Dev Meetup:
https://www.meetup.com/SLC-FE-DEV/events/259135734/

Jared Potter

March 12, 2019
Tweet

More Decks by Jared Potter

Other Decks in Programming

Transcript

  1. Slides and Code Available (also available at end) Slides: https://goo.gl/sXzYZK

    Code: https://github.com/JaredPotter/ vue-intro-demo
  2. Personal Software Projects • “But Does it Order Pizza” ◦

    Amazon Dash Button • Automated Crypto Trading • Video Downloaders/Rippers • Security / Privacy (tinfoil hat)
  3. Talk Expectations What this talk isn’t • Advanced Vue What

    this talk is • Brief history of interactive web apps • Modern Frontend JavaScript Framework Core Concepts • Specific Demos to illustrate • Questions are welcome anytime
  4. History • Started with static HTML / CSS • JavaScript

    opened up interactivity with the native ‘document’ API • jQuery made JavaScript shorthanded, and added easy ajax • Frontend JavaScript Frameworks ◦ Angular ◦ React ◦ Vue
  5. Frontend JavaScript Frameworks Concepts • Single Page Application (SPA) ◦

    Navigation Routing • 2-Way Binding • State Management • Structured methodology for creating applications
  6. Single Page Application • “No page refresh” when navigating through

    pages • Simply updates the DOM upon page changes
  7. Two Way Binding • When the <input type=”text” v-model=”myValue”/> changes,

    this updates the myValue variable on the model. • Similarly, when the myValue variables changes in code, this updates the view.
  8. State Management • Maintain Application state using a pattern of

    state, getters, mutations, and actions. • Examples: Vuex for Vue, and Redux for React
  9. Getting Started - Vue CLI • npm install -global vue-cli

    • vue create vue-intro-demo • cd vue-intro-demo • vue add router • vue add vuex