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

355
Views
Why does the v-bind shortcut : cannot be used for this property in this bootstrap-vue table?

I refer to this stackoverflow answer.

How to remove (Click to sort Ascending) text from header of every column in this bootstrap-vue table?

The correct answer is below;

<b-table
 ⋮
 label-sort-asc=""
 label-sort-desc=""
 label-sort-clear=""
></b-table>

I add the v-bind shortcut : to the properties as below;

<b-table
 ⋮
 :label-sort-asc=""
 :label-sort-desc=""
 :label-sort-clear=""
></b-table>

With the : in front, there is no effect. For other properties, adding : is fine. I am confused why some properties need : and some others like hover, striped don't. How to know when I can use :?

I am using vue v2.6 and bootstrap-vue

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The colon is a shorthand syntax of v-bind directive and it's used for dynamically binding attributes/props to expressions.

So in short, in case the item you're trying to bind will not change and it is not a prop you're trying to pass downwards, it is useless.
If it is intended to be dynamic, you need some logic to control it or else it will do nothing.
v-bind documentation

about 4 years ago · Juan Pablo Isaza 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!