The VueJS Show (Scott teaches Wes)

Syntax - Tasty Web Development Treats - Een podcast door Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

Categorieën:

In this episode Wes and Scott talk about VueJS - what it is, how it compares to other frontend frameworks, and how to get the most out of it.

Sentry - Sponsor

If you want to know what’s happening with your errors, track them with Sentry. Sentry is open-source error tracking that helps developers monitor and fix crashes in real time. Cut your time on error resolution from five hours to five minutes. It works with any language and integrates with dozens of other services. Syntax listeners can get two months for free by visiting Sentry.io and using the coupon code “tastytreat”.

Clubhouse - Sponsor

Clubhouse is the first project management software that brings everyone together so that teams can focus on what matters: creating products that customers love. Clubhouse provides a perfect balance of simplicity and structure for better cross-functional collaboration. Check out https://clubhouse.io/syntax and get your first two months free.

Show Notes

2:22 - What’s the deal with VueJS?

  • Combines ideas from Angular 1, React and Blaze
  • Ease of Angular 1
  • App structure of React

8:02 - Components

  • Template syntax is similar to handlebars

    • aka {{stuff}}
  • v-bind:property

    • v-bind:property or simply :bind allows you to dynamically bind a value to a property
  • Props

    • Props must be declared before they can be used in a template.
  • Script tag

    • Where imports happen
    • Where props are defined, computed properties, action events and lifecycle
  • Actions

    • v-on:click="doSomething"
    • @click="doSomething"
    • These will run a doSomething event defined in your script export via methods
  • Lifecycle

    • How does data fetching work?
  • CSS

    • Can be scoped to file by adding