Vue.JS 2 Tutorial #37 - Registering Thins Locally > JS프레임워크

JS프레임워크

Vue.JS 2 Tutorial #37 - Registering Thins Locally 정보

Vue 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);

    }

  }

}

 

 

추천
0
  • 복사

댓글 0개

© SIRSOFT
현재 페이지 제일 처음으로