Splitting icon indicating copy to clipboard operation
Splitting copied to clipboard

A problem with using vue

Open jinhang87 opened this issue 3 years ago • 1 comments

<span data-splitting>{{ message }}</span>

message is not changed after using data-splitting,

The complete code is as follows: https://codepen.io/jinhang87/pen/abyPLwX

jinhang87 avatar Nov 17 '21 12:11 jinhang87

You can't use the standard Splitting method for reactive frameworks, since they regularly reset their templates to sync with reactive values.

You need to generate the HTML first and then pass it to the template as a computed value. See here: https://splitting.js.org/guide.html#splitting-html

craigrileyuk avatar Feb 08 '23 02:02 craigrileyuk