Giter Club home page Giter Club logo

Comments (5)

pggalaviz avatar pggalaviz commented on August 10, 2024

@halilyuce looks like you're trying to set the text string directly on the html instead of it being returned from the data in your module. That's why the placeholder is showing there instead of the parsed html.
Check the usage example here: https://pggalaviz.github.io/vue-highlights/#/docs

from vue-highlights.

halilyuce avatar halilyuce commented on August 10, 2024

@halilyuce looks like you're trying to set the text string directly on the html instead of it being returned from the data in your module. That's why the placeholder is showing there instead of the parsed html.
Check the usage example here: https://pggalaviz.github.io/vue-highlights/#/docs

Thanks for the reply @pggalaviz but string data is coming from API, I created a loop in a list and I need to use this for every string. Is it possible? I have a timeline like Twitter and I want to parse @mentions, #hashtags and urls in the text thanks to your repo.

from vue-highlights.

pggalaviz avatar pggalaviz commented on August 10, 2024

Thanks for the reply @pggalaviz but string data is coming from API, I created a loop in a list and I need to use this for every string. Is it possible? I have a timeline like Twitter and I want to parse @mentions, #hashtags and urls in the text thanks to your repo.

It's possible to do that, but you shouldn't be passing the text string directly to the v-model since this is a "compuded" value from the data object of your module, you should instead create a separate module as a wrap for the vue-hightlights one and compute your data from there as the example in the documentation.

from vue-highlights.

halilyuce avatar halilyuce commented on August 10, 2024

Thanks for the reply @pggalaviz but string data is coming from API, I created a loop in a list and I need to use this for every string. Is it possible? I have a timeline like Twitter and I want to parse @mentions, #hashtags and urls in the text thanks to your repo.

It's possible to do that, but you shouldn't be passing the text string directly to the v-model since this is a "compuded" value from the data object of your module, you should instead create a separate module as a wrap for the vue-hightlights one and compute your data from there as the example in the documentation.

So, you mean create a child component for this and pass string as prop and use that prop value for v-model, am I right?

from vue-highlights.

pggalaviz avatar pggalaviz commented on August 10, 2024

So, you mean create a child component for this and pass string as prop and use that prop value for v-model, am I right?

Yes, hopefully that solves your issue.

from vue-highlights.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.