~/talk

Vue & Vuex

Talkat iJS 2018 · 2018-10-15..10-19· [vue]
slides:none on file

Claims that Vue has as many or more GitHub stars than React and that you can start with a script tag then scale to Vue CLI and ES6. Demonstrates a concrete product list + detail editor that copies props to avoid mutating the parent and fixes a selection bug with a watch so editing works. Shows Vue Router params and query use, Vuex with mutations and actions, store modules, and testing with Vue Test Utils, Jest/Karma and end‑to‑end tools like Cypress/Nightwatch.

AI-written summary · about

  1. 0:00Start
  2. 2:47Let's start with the DOM
  3. 5:16Use the structural directive v-for - Add a list to our dataproperty
  4. 5:42How do we do conditional rendering
  5. 5:57CONDITIONAL RENDERING, TEMPLATE MARKUP
  6. 6:17WORKING WITH FORM CONTROLS
  7. 6:29Input element
  8. 9:37COMPONENT EXAMPLE
  9. 10:13COMPONENT WITH A CHILD COMPONENT
  10. 11:10CREATING COMPONENTS WITH ES6 MODULE /VUE-CLI APPROACH
  11. 11:271 file=1 component
  12. 12:28What about child components ?
  13. 12:39To be able to use chid component we need to import child component +register it with its parent component
  14. 16:25Specify a default object, If input is missing
  15. 17:52Validator function
  16. 19:09Let's start with the parent
  17. 26:24DEFINE A VIEWPORT
  18. 27:18How to navigate! Answer: Define a link
  19. 32:03TESTING
  20. 32:59HOW DO WE CONSTRUCT A UNIT TEST? - Get a constructor reference
  21. 35:08How do we deal with events?
  22. 37:06Scenario: take our test component, write in the input field, assert our component shows data
  23. 38:36VUEX CENTRALIZED STATE MANAGEMENT FOR VUE.JS
  24. 40:03Instantiating the store
  25. 41:14MUTATIONS
  26. 42:47How do we access the payload in the store?
  27. 43:06ACTIONS
  28. 46:07SOLUTION store modules
  29. 46:41We define a store module, just like we would a normal
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.