Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

93
Views
vue - valor html de interpolación

hay una tabla de datos v con paginación del lado del servidor, donde utilicé un formateador para una columna específica como se describe en este tema .

la necesidad es reemplazarlo con HTML y no con texto plano . Por ejemplo, mi función es como:

 formatCurrency (value) { return '<strong>' + value + '</strong>'; //'<v-icon dark small>tick-outline</v-icon>' + value; },

cuando uso esto obteniendo el HTML puro.... como:

ingrese la descripción de la imagen aquí

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Intenta usar la directiva v-html :

 new Vue({ el: '#demo', data() { return { price: 555.33 } }, methods: { formatCurrency (value) { return '<strong>' + value + '</strong>'; //'<v-icon dark small>tick-outline</v-icon>' + value; }, } }) Vue.config.productionTip = false Vue.config.devtools = false
 <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script> <div id="demo"> <div v-html="formatCurrency(price)"></div> </div>

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!