Vue.JS 2 Tutorial #37 - Registering Thins Locally
Registering Things Locally (vs Globally)
filter: {
'to-uppercase': function(value) {
return blog.tilte.match('this.search');
}
}
는 아래와 같음
filter: {
toUppercase(value) {
return blog.tilte.match('this.search');
}
},
directives: {
'rainbow': {
bind(el.binding. vnode) {
el.style.color = "#' + Math.random().toString916).slice(2, 8);
}
}
}
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인