Advanced Custom Directives With TLX

added by JavaScript Kicks
12/10/2018 8:18:33 AM

434 Views

Just like Vue, attribute directives in TLX can take ":" delimited arguments. This article shows how to create your own custom attribute directives that take arguments by implementing a t-bind directive to do the same thing as v-bind. It also illustrates how the arguments to the attribute directive can themselves be dynamic, something not currently possible with Vue.


0 comments