Vue: from view to view
by
Hsiaoming Yang
Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
Vue: from view to view Hsiaoming Yang @lepture
Slide 2
Slide 2 text
About Me 0
Slide 3
Slide 3 text
̣ lepture.com ̣ github.com/lepture ̣ twitter.com/lepture
Slide 4
Slide 4 text
̣ not skills ̣ no fantasy new features ̣ no cool technology
Slide 5
Slide 5 text
My first view 1
Slide 6
Slide 6 text
No content
Slide 7
Slide 7 text
No content
Slide 8
Slide 8 text
vue-hackernews 3 views
Slide 9
Slide 9 text
A deep view 2
Slide 10
Slide 10 text
̣ python-china.org (qingcheng) ̣ app.xiaotaojiang.com
Slide 11
Slide 11 text
Large Applications vuex + vue-router
Slide 12
Slide 12 text
No content
Slide 13
Slide 13 text
– Phil Karlton There are only two hard things in Computer Science: cache invalidation and naming things
Slide 14
Slide 14 text
Make Vue Great Again looking
Slide 15
Slide 15 text
̣ views ̣ components ̣ widgets
Slide 16
Slide 16 text
views 3
Slide 17
Slide 17 text
Views are the web pages
Slide 18
Slide 18 text
̣ Home.vue ̣ Brands.vue ̣ Product.vue ̣ UserProfile.vue
Slide 19
Slide 19 text
import Home from ‘./Home.vue’ import UserProfile from ‘./UserProfile.vue’ export default { ‘/’: { title: ‘Ḓᶭ’ component: Home }, ‘/user’: { title: ‘አಁ’ component: UserProfile } } views/index.js
Slide 20
Slide 20 text
import views from ‘./views’ router.map(views)
Slide 21
Slide 21 text
components 4
Slide 22
Slide 22 text
as pure as possible components are just components
Slide 23
Slide 23 text
JUST USER INTERFACE
Slide 24
Slide 24 text
carousel This
Slide 25
Slide 25 text
import Slider from ‘./Slider.vue’ import Avatar from ‘./Avatar.vue’ export default { Slider, Avatar, } components/index.js global
Slide 26
Slide 26 text
widgets 5
Slide 27
Slide 27 text
components must not widgets must communicate with servers
Slide 28
Slide 28 text
No content
Slide 29
Slide 29 text
̣ in ̣ in ̣ in
Slide 30
Slide 30 text
import CartItem from ‘./CartItem.vue’ export default { components: { CartItem } } views/Home.vue
Slide 31
Slide 31 text
App.vue 6
Slide 32
Slide 32 text
̣ Entry Point ̣ Belongs to nothing ̣ A special vue file
Slide 33
Slide 33 text
App.vue views/ components/ widgets/
Slide 34
Slide 34 text
maintainablevue.com recap
Slide 35
Slide 35 text
About this slide Noteworthy Optima Impact Color Patterns Main Fonts
Slide 36
Slide 36 text
vui.github.io AD
Slide 37
Slide 37 text
THX