Skip to content

Instantly share code, notes, and snippets.

@filipelinhares
Last active December 2, 2020 17:17
Show Gist options
  • Save filipelinhares/ccdcc034c9a0ee9cf722ae8a34811d1b to your computer and use it in GitHub Desktop.
Save filipelinhares/ccdcc034c9a0ee9cf722ae8a34811d1b to your computer and use it in GitHub Desktop.
Presentantion Vue.js - EasyRetro

Vue overview

The core library is focused on the view layer only, and is easy to pick up and integrate with other libraries or existing projects

Ecosystem

  • Devtools
  • Vue CLI
  • Vue Loader
  • Vue Router
  • Vuex
  • Vue SSR

Vue instance

vue website screenshot from 2014

<div id="app">
  {{ message }}
</div>
var app = new Vue({
  el: '#app',
  data: {
    message: 'Hello Vue!'
  }
})

Result:

Components

Components are reusable Vue instances with a name

new Vue({
  el: '#app',
  components: {
    'component-a': ComponentA,
    'component-b': ComponentB
  }
})

// or 


Vue.component('component-c', { /* ... */ })

Options

Assets

  • directives
  • filters
  • components

Lifecycle

  • beforeCreate
  • created
  • beforeMount
  • mounted
  • beforeUpdate
  • updated
  • activated
  • deactivated
  • beforeDestroy
  • destroyed
  • errorCaptured

Data

  • data
  • props
  • propsData
  • computed
  • methods
  • watch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment