Skip to content

function data()

As described in the section on data, if we name a function data it will have a special behavior and will be called every time the data is modified. This function will receive the original data and should return the transformed data.

You can include a function data() in the methods to perform filter and transformation of data before the template evaluation.

Released under the MIT License.