Skip to content

Feature: id: directive #14515

@Ocean-OS

Description

@Ocean-OS

Describe the problem

Since there's the class: element directive, it seems logical to add a id: element directive. There are often developers that prefer to use element IDs over classes.

Describe the proposed solution

Add an id: element directive. This would be used in very similar ways as the class: directive, just for element IDs.
Example:

<div id:example={isExample}></div>

Importance

nice to have

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions