Skip to content

Commit 1351d3f

Browse files
committed
Remove ES6 syntax for IE11 compatibility
1 parent 8f3d8c9 commit 1351d3f

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/index.html

+10-10
Original file line numberDiff line numberDiff line change
@@ -113,20 +113,17 @@
113113
},
114114
vueComponents: {
115115
'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() {
122119
return {
123120
count: 0,
124121
};
125122
},
126123
},
127124
},
128125
vueGlobalOptions: {
129-
data() {
126+
data: function() {
130127
return {
131128
count: 0,
132129
message: 'Hello, World!',
@@ -139,7 +136,7 @@
139136
};
140137
},
141138
computed: {
142-
timeOfDay() {
139+
timeOfDay: function() {
143140
const date = new Date();
144141
const hours = date.getHours();
145142

@@ -160,7 +157,7 @@
160157
},
161158
vueMounts: {
162159
'#counter': {
163-
data() {
160+
data: function() {
164161
return {
165162
count: 0,
166163
};
@@ -195,7 +192,10 @@
195192
if (vm.route.path === '/') {
196193
return html;
197194
}
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>'
198+
);
199199
});
200200
},
201201
],

0 commit comments

Comments
 (0)