-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbrowser-setup.vue
56 lines (54 loc) · 1.54 KB
/
browser-setup.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<template>
<div class="tutorial">
<br><br>
<h2>Hello {{ name }}! Welcome to learn-vue-app.</h2>
<br>
What's your name? <input v-model='name'>
<br><br>
This page (or rather the whole website) is rendered using Vue. Try changing the value in the above input and you'll see it reflected in the greeting message.
<br><br>
<h2>Follow these steps to setup your browser for development:</h2>
<ol>
<li>
Install devtools (<a href='https://chrome.google.com/webstore/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd' target='_blank'>Chrome</a> | <a href='https://addons.mozilla.org/en-US/firefox/addon/vue-js-devtools/' target='_blank'>Firefox</a>)
</li>
<li>
Right click in the browser, click on "Inspect Vue component" and open the Vue tab.
</li>
<li>
Make sure the "PagesHelloWorld" line is selected.
</li>
<li>
Edit the variable "name" in the section on your right hand side.
<br>
OR
<br>
Switch to the console and change the name to something else (using $vm0.name = "bar";).
<br>
</li>
<li>
You'll see the updated greeting message on the page.
</li>
</ol>
<TutorialNavigation/>
</div>
</template>
<script>
import TutorialNavigation from '~/components/TutorialNavigation.vue'
export default {
components: {
TutorialNavigation
},
data() {
return {
name: 'foo'
}
}
}
</script>
<style scoped>
.tutorial {
width: 80%;
margin: auto;
}
</style>