Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
本番環境にVue.jsを使った話 / Use Vue.js at production
Search
Hiromi Kimura
August 02, 2017
1.5k
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
本番環境にVue.jsを使った話 / Use Vue.js at production
Hiromi Kimura
August 02, 2017
More Decks by Hiromi Kimura
See All by Hiromi Kimura
マネーフォワード Pay for Businessのフロントエンド / Money Forward Pay for Business Frontend
kimromi
0
930
マネーフォワードクラウド経費でのフロントエンドの取り組み / moneyforward-expense-frontend
kimromi
4
1.2k
エンジニアにとってのアウトプットとはなにか考えた / what-is-output
kimromi
3
1.2k
TypeScriptで作るGitHubApps / make GitHub Apps by TypeScript
kimromi
0
680
ムームードメインのJavaScript環境を整えた話 / prepare muumuu-domain's javascript
kimromi
1
620
ぼくがかんがえたさいきょうのぷるりくえすと / saikyo-no-pull-request
kimromi
7
110k
Vue.js on Rails / vue-js-on-rails
kimromi
7
5.1k
how about Marp?
kimromi
0
170
engineer-guideline
kimromi
0
1.1k
Featured
See All Featured
A Tale of Four Properties
chriscoyier
163
24k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
520
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
350
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
480
For a Future-Friendly Web
brad_frost
183
10k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
58k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
Making Projects Easy
brettharned
120
6.8k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
390
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
460
Transcript
ଜւ(.01FQBCP *OD 'VLVPLBQIQ ຊ൪ڥʹ7VFKTΛͬͨ
(.0ϖύϘϜʔϜʔυϝΠϯΤϯδχΞ ଜւ!LJNSPNJ ࣇͷύύʢࡀͷஉͷࢠʣ IUUQLJNSPNJIBUFOBCMPHKQ
IUUQTUFDIQFQBCPDPNNVVNVVTIPQQJOHDBSU
7VFKTʁ
Α͚ͩ͑͞·͢
IUUQTUSFOETHPPHMFDPNUSFOETFYQMPSF EBUFUPEBZZRWVFKT SFBDUKT BOHVMBSKT
ಛ wK2VFSZͷΘΓͱͯ͠খنʹ w41"443Ͱ͖େنʹ w*&Ҏ߱ʹରԠ wެࣜͷຊޠυΩϡϝϯτ͕Θ͔Γ͍͢ wখ࢝͘͞Ί͘͢ͱ͖͍ͬͭ͢ʂ IUUQTKQWVFKTPSH
)FMMP7VF <div id="vue-app"> <h1 v-show="isShow">hello!</h1> <button v-on:click="showHello()">show hello</button> </div> <script
src="https://unpkg.com/vue"></script> <script> new Vue({ el: '#vue-app', data: { isShow: false, }, methods: { showHello: function () { this.isShow = true } } }) </script>
݁Ռ
<div id="vue-app"> <h1 v-show="isShow">hello!</h1> <button v-on:click="showHello()">show hello</button> </div> <script src="https://unpkg.com/vue"></script>
<script> new Vue({ el: '#vue-app', data: { isShow: false, }, methods: { showHello: function () { this.isShow = true } } }) </script> OFX7VF 7VFΠϯελϯεΛ࡞ )FMMP7VF
<div id="vue-app"> <h1 v-show="isShow">hello!</h1> <button v-on:click="showHello()">show hello</button> </div> <script src="https://unpkg.com/vue"></script>
<script> new Vue({ el: '#vue-app', data: { isShow: false, }, methods: { showHello: function () { this.isShow = true } } }) </script> FMཧ͍ͨ͠%0.ͷJEΛࢦఆ )FMMP7VF
<div id="vue-app"> <h1 v-show="isShow">hello!</h1> <button v-on:click="showHello()">show hello</button> </div> <script src="https://unpkg.com/vue"></script>
<script> new Vue({ el: '#vue-app', data: { isShow: false, }, methods: { showHello: function () { this.isShow = true } } }) </script> EBUB7VFΠϯελϯεʹอ࣋͢ΔσʔλΛએݴ )FMMP7VF
<div id="vue-app"> <h1 v-show="isShow">hello!</h1> <button v-on:click="showHello()">show hello</button> </div> <script src="https://unpkg.com/vue"></script>
<script> new Vue({ el: '#vue-app', data: { isShow: false, }, methods: { showHello: function () { this.isShow = true } } }) </script> NFUIPETॲཧΛ͢ΔϝιουΛ࣮ IUNMଆ͔Β7VFΠϯελϯεͰݺͼग़͠Մೳ )FMMP7VF
<div id="vue-app"> <h1 v-show="isShow">hello!</h1> <button v-on:click="showHello()">show hello</button> </div> <script src="https://unpkg.com/vue"></script>
<script> new Vue({ el: '#vue-app', data: { isShow: false, }, methods: { showHello: function () { this.isShow = true } } }) </script> )FMMP7VF
IUUQTUFDIQFQBCPDPNNVVNVVTIPQQJOHDBSU
͖ͬ͞ͷײ͡Ͱ͍ͬͯΔ 41"Ͱͳ͘443͍ͬͯ·ͤΜ
ཧ༝ wσβΠφʔͱڠۀͩͬͨ w3VCZPO3BJMTͷ্Ͱͬͨ
ཧ༝ wσβΠφʔͱڠۀͩͬͨ w3VCZPO3BJMTͷ্Ͱͬͨ 3BJMTͷ7JFXϑΝΠϧͰ݁ͤ͞Δ )5.-ͷςϯϓϨʔτΛ+BWB4DSJQUଆʹ࣋ͨͳ͍ ˠίϯϙʔωϯτΛ࣋ͨͳ͍
<div id="vue-app"> <h1 v-show="isShow">hello!</h1> <button v-on:click="showHello()">show hello</button> </div> <script src="https://unpkg.com/vue"></script>
<script> new Vue({ el: '#vue-app', data: { isShow: false, }, methods: { showHello: function () { this.isShow = true } } }) </script> ɾid=“vue-app”͔ͩΒ7VFKT͔͍ͭͬͯΔͷͩͳ ɾv- Ͱ࢝·͍ͬͯΔ͔ΒԿ͔ॲཧʹ͔͍ͭͬͯΔͷͩͳ ɾv-show දࣔΓସ͑Λ͢Δͭͩͳ ɾv-on:click ΫϦοΫͨ࣌͠ʹԿ͔͍ͯ͠Δͳ )5.-͔ΒಡΈऔΕΔใ͕ଟ͍ʂ )FMMP7VF
K2VFSZ <div> <h1 id="hidden-h1" style="display: none;">hello!</h1> <button id="h1-show">show hello</button> </div>
<script src="https://unpkg.com/vue"></script> <script> new Vue({ el: '#vue-app', data: { isShow: false, }, methods: { showHello: function () { this.isShow = true } } }) </script> ɾid="hidden-h1"Կʹ͍ͬͯΔJEͳͷͩΖ͏ ɾstyle="display: none;" DTTʹҠ͍͚ͨ͠ͲҠ͢ͱ ɹI͕࠷ॳ͔Βফ͑ͯΔ͜ͱ͕Θ͔Βͳ͘ͳΔͳ ɾid="h1-show" ͨͿΜΫϦοΫͨ͠ΒIΛද͍ࣔͯ͠ΔΜͩΖ͏ +BWB4DSJQU$44Λ֬ೝ͠ͳ͍ͱΘ͔Βͳ͍ʂ ˠ։ൃεϐʔυ͕μϯɺอक͠ʹ͍͘
͚ͭͩۤ࿑ͨ͠
BKBYΛ͏߹ w7VFKTਪͷBYJPTͱ͍͏)551ΫϥΠΞϯτΛ༻ IUUQTHJUIVCDPNN[BCSJTLJFBYJPT w1SPNJTFϕʔε w*&͕ରԠͯ͠ͳ͔ͬͨɾɾɾ
QPMZpMM͍ͭͰʹXFCQBDL CBCFM wCBCFMQPMZpMMͰQPMZpMMΛಉࠝ͢Δ͜ͱͰݹ͍ϒϥβ͑Δ w&4ʹτϥϯεύΠϧ w&4 &4 Ͱιʔείʔυॻ͚ΔΑ͏ʹͳͬͨʂ wͦͯ͠&4ɾɾ
·ͱΊ w7VFKTΓ্͕͍ͬͯΔʢΓ্͍͖͍͛ͯͨʂʣ wখ͔͘͞ΒͰ࢝ΊΒΕΔ w)5.-͔ΒಡΈऔΕΔใ͕ଟ͘อक͍͢͠ w+BWB4DSJQUΛϞμϯʹ͍ͯͧ͘͠ʂʂ
ࠓ͙͢ʂ <script src="https://unpkg.com/vue"></script>