Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark component methods that used as actions in markup #24

Open
alexprey opened this issue Aug 16, 2020 · 0 comments
Open

Mark component methods that used as actions in markup #24

alexprey opened this issue Aug 16, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers Svelte V3 Issue related to Svelte V3 components

Comments

@alexprey
Copy link
Owner

Parse use: attributes in component markup and mark methods of that component with action flag.

Examples:

<script>
/**
 * This method must be marked as an `action`
 */
function svelteActionTest(node) {
   // ....
}
</script>

<!-- Must parse w/o issues -->
<div use:svelteActionTest>
</div>

<!-- Must parse w/o issues -->
<div use:svelteActionTest={{ id: 123 }}>
</div>

<!-- Must ignore this attribute -->
<Component use:svelteActionTest>
</div>
@alexprey alexprey added enhancement New feature or request good first issue Good for newcomers Svelte V3 Issue related to Svelte V3 components labels Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers Svelte V3 Issue related to Svelte V3 components
Projects
None yet
Development

No branches or pull requests

1 participant