Skip to content

Commit fc97e4d

Browse files
committed
fix custom dir example
1 parent c2e4bd9 commit fc97e4d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/guide/custom-directive.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ An example of a custom directive using some of these properties:
7878
``` js
7979
Vue.directive('demo', {
8080
bind: function () {
81-
this.el.style.color = '#fff'
82-
this.el.style.backgroundColor = this.arg
81+
console.log('demo bound!')
8382
},
8483
update: function (value) {
8584
this.el.innerHTML =

0 commit comments

Comments
 (0)