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.

Support slots, events and external .js

See original GitHub issue

Do you plan to add support for support slots, events, mixins and external .js?

my .vue:

<template>
.....
</template>

<script src="./my.js"><script>

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:20 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
Kocalcommented, Aug 9, 2018

Mmmh…

Good question. Maybe @vue-mixin can take a filename that will be read and parsed by jsdoc-vuejs? And then after parsing, we populate component’s prop/data/computed?

What do you think?

2reactions
pbastowskicommented, Oct 8, 2018

Update: @event can be used to document events already, like this

/**
 * Toggle flag that displays this list
 * @event toggle-show-list
 * @property val
 */

/**
 * Emits event to the parent to remove the given UUID
 * @event remove-delegate
 * @property {uuid} UUID
 */

/**
 * Tell the parent to close the delegate form
 * @event close-delegate-form
 */
Read more comments on GitHub >

github_iconTop Results From Across the Web

Using templates and slots - Web Components | MDN
This article explains how you can use the and elements to create a flexible template that can then be used to populate the...
Read more >
How to watch for external slot changes? - Stack Overflow
The slot element doesn't accept events, but you could use @vnodeUpdated event in the element that wraps the slot to watch the changes...
Read more >
Bountysource
Support slots, events and external .js. ... Help and Information. Frequently Asked Questions · Bugs and Feature Requests · Fees ...
Read more >
How can I emulate Signals and Slots found in Qt, to Javascript ...
Often, the motivation for event-based programming is an asynchronous program, but here JS offers a better approach with its async/await ...
Read more >
Using Slots In Vue.js - Smashing Magazine
To get access to the data passed to the slot, we specify the name of the scope variable with the value of the...
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