Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A problem with using vue #79

Open
jinhang87 opened this issue Nov 17, 2021 · 1 comment
Open

A problem with using vue #79

jinhang87 opened this issue Nov 17, 2021 · 1 comment

Comments

@jinhang87
Copy link

<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

@craigrileyuk
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants