There was an error while loading. Please reload this page.
1 parent 5ee0e61 commit d60cf86Copy full SHA for d60cf86
index.html
@@ -10,7 +10,8 @@ <h1 v-switching-color:fast.underline.textcenter="colors">Vue School</h1>
10
</div>
11
12
<script type="text/javascript">
13
- Vue.directive('switching-color', function (el, binding) {
+ Vue.directive('switching-color', {
14
+ bind (el, binding) {
15
const modifiers = binding.modifiers
16
if (modifiers.underline) {
17
el.style.textDecoration = 'underline'
@@ -36,6 +37,7 @@ <h1 v-switching-color:fast.underline.textcenter="colors">Vue School</h1>
36
37
i = 0
38
}
39
}, speed)
40
+ }
41
})
42
43
new Vue({
0 commit comments