Skip to content

A problem with using vue #79

Open
Open

Description

@jinhang87
<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

Activity

  1. craigrileyuk commented on Feb 8, 2023

    @craigrileyuk

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions