question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change scoped field slots name syntax

See original GitHub issue

Due to new Dynamic Arguments feature of Vue when we want to define new field slot in table, should add two \ to field name : e.g

<template #\[field_name\]="row">Some thing...</template>

I think field slots name syntax can be better, something like __field_name or _field_name_.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tmorehousecommented, Sep 3, 2019

When used in document DOM templates there can be issues with \. But not when using Vue-loader

0reactions
mehran-prscommented, Sep 3, 2019

Note that \ are not allowed in attribute names.

You got it wrong, I don’t using \ as attribute name, just escaping [ & ] in attribute name and Vue allow this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Slots - Vue.js
Slot content has access to the data scope of the parent component, ... To pass a named slot, we need to use a...
Read more >
[feature request] new `v-slot` syntax does not support ... - GitHub
So the scoped slot names (which are dynamic based on the fields present in the data) are in the format of cell[<field key>]...
Read more >
A Guide to Vue Slots - LearnVue
Simply put, scoped slots allow our slot content in our parent component to have access to data that's only found in the child...
Read more >
Vue 2.6 Slots - Basic, Named, and Scoped Slots - YouTube
The Vue 3.0 syntax may have some minor changes, but should be fairly similar. 0:00 Start 0:57 Slots vs Props 5:00 Basic Slots...
Read more >
How To Use Scoped Component Slots in Vue.js - DigitalOcean
Add an attribute to the <template> element and set it to the name that you wish to access the scope properties from. This...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found