Fireship · @fireship

Vue.js Explained in 100 Seconds

Uploaded April 3, 2020 · Length 2:04

Vue.js Explained in 100 Seconds

Summary

vue.js explained as a simple front-end UI framework for building web apps with reactive components and templates.

  • vue.js
  • javascript framework
  • front-end ui
  • reactive components
  • declarative views

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    view j/s it's a JavaScript framework for

  2. 0:02

    building front-end UIs in view you can

  3. 0:04

    start simple and then progressively add

  4. 0:06

    in the tools and features that you need

  5. 0:07

    to build a complex web application at

  6. 0:10

    its core it provides a way to build

  7. 0:11

    components that encapsulate data or

  8. 0:13

    state in your JavaScript and then

  9. 0:15

    connect that state reactively to a

  10. 0:17

    template in HTML we call these

  11. 0:19

    components declarative views because the

  12. 0:21

    same data inputs will always produce the

  13. 0:23

    same output in the visual UI when we

  14. 0:25

    declare data on this data object it

  15. 0:27

    links or binds it to the HTML on the

  16. 0:29

    template above when the value of the

  17. 0:30

    data changes the component will

  18. 0:32

    automatically rerender or in other words

  19. 0:34

    it's reactive and the framework does a

  20. 0:36

    ton of work under the hood to make sure

  21. 0:38

    that this process is performance across

  22. 0:39

    a huge component tree we can work with

  23. 0:41

    this data in the template thanks to

  24. 0:43

    views HTML based template syntax we can

  25. 0:45

    interpolate a value for expression using

  26. 0:48

    double braces and we also have a variety

  27. 0:50

    of directives to control the behavior of

  28. 0:52

    the HTML based on the data we can use VF

  29. 0:54

    to only render an element when the value

  30. 0:56

    on the right side is truthy and then we

  31. 0:58

    might have a fallback element after that

  32. 1:00

    that's only rendered when the values

  33. 1:01

    fall C with V else we can make the app

  34. 1:04

    interactive by listening to events using

  35. 1:06

    the V on directive we can listen to an

  36. 1:08

    event on an element then run some code

  37. 1:10

    to handle that event on the right side

  38. 1:12

    we can do that directly in the template

  39. 1:13

    or define a custom method and the

  40. 1:15

    components methods object the method has

  41. 1:18

    access to our reactive data and that

  42. 1:19

    means all we have to do is change the

  43. 1:21

    value of the data and the component will

  44. 1:23

    automatically rerender and that's all it

  45. 1:25

    takes to build an interactive reactive

  46. 1:26

    declarative UI component with view the

  47. 1:28

    framework is loved by developers for the

  48. 1:30

    simplicity but also its ability to scale

  49. 1:32

    up in complexity incrementally its

  50. 1:34

    plugin system allows you to easily drop

  51. 1:36

    in things like a router state management

  52. 1:38

    firebase support and more and perhaps

  53. 1:40

    best of all it's not sponsored by some

  54. 1:42

    mega corporation it's not pressured to

  55. 1:44

    push out new releases all the time and

  56. 1:46

    does a great job listening to its

  57. 1:47

    community this has been GU Jas and 100

  58. 1:49

    seconds stay tuned for a full length

  59. 1:51

    tutorial here on YouTube in the near

  60. 1:52

    future and check out my view firebase

  61. 1:54

    course on fire ship if you're ready to

  62. 1:56

    start building a full stack app thanks

  63. 1:58

    for watching and I will see you in the

  64. 1:59

    next one