You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.html
+10-10
Original file line number
Diff line number
Diff line change
@@ -113,20 +113,17 @@
113
113
},
114
114
vueComponents: {
115
115
'button-counter': {
116
-
template: `
117
-
<button @click="count += 1">
118
-
You clicked me {{ count }} times
119
-
</button>
120
-
`,
121
-
data(){
116
+
template:
117
+
'<button @click="count += 1">You clicked me {{ count }} times</button>',
118
+
data: function(){
122
119
return{
123
120
count: 0,
124
121
};
125
122
},
126
123
},
127
124
},
128
125
vueGlobalOptions: {
129
-
data(){
126
+
data: function(){
130
127
return{
131
128
count: 0,
132
129
message: 'Hello, World!',
@@ -139,7 +136,7 @@
139
136
};
140
137
},
141
138
computed: {
142
-
timeOfDay(){
139
+
timeOfDay: function(){
143
140
constdate=newDate();
144
141
consthours=date.getHours();
145
142
@@ -160,7 +157,7 @@
160
157
},
161
158
vueMounts: {
162
159
'#counter': {
163
-
data(){
160
+
data: function(){
164
161
return{
165
162
count: 0,
166
163
};
@@ -195,7 +192,10 @@
195
192
if(vm.route.path==='/'){
196
193
returnhtml;
197
194
}
198
-
return`${html}<br/> <i>Vercel</i> has given us a Pro account <br/> <a href="https://vercel.com/?utm_source=docsifyjsdocs" target="_blank"><img src="_media/vercel_logo.svg" alt="Vercel" width="100" height="64"></a>`;
195
+
return(
196
+
html+
197
+
'<br/> <i>Vercel</i> has given us a Pro account <br/> <a href="https://vercel.com/?utm_source=docsifyjsdocs" target="_blank"><img src="_media/vercel_logo.svg" alt="Vercel" width="100" height="64"></a>'
0 commit comments