* Replace `substr`/`substring` with `slice`. The second argument to `substring` is length, not end index as in `substr`/`slice`, so convert where necessary. * Replace `new Date().getTime()` with `Date.now()` * Documentation fixes * Replace `throw Error` with `throw new Error` Change-Id: I532500ea4c99d8ebec01efb21273c8df21626e59
35 lines
421 B
Vue
35 lines
421 B
Vue
<template>
|
|
<!-- Outer comment -->
|
|
<div class="mw-vue-test">
|
|
<!--
|
|
Inner comment
|
|
with multiple lines
|
|
and tabs
|
|
-->
|
|
<p>Hello\n</p>
|
|
<p>{{ hello }}</p>
|
|
<pre>
|
|
foo\
|
|
bar
|
|
</pre>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
// @vue/component
|
|
module.exports = {
|
|
data: function () {
|
|
return {
|
|
hello: 'world'
|
|
};
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style lang="less">
|
|
.mw-vue-test {
|
|
&:hover {
|
|
background-color: red;
|
|
}
|
|
}
|
|
</style>
|