ect-auto-id
v1.21.0
Published
ECT Auto ID which is a quick way to assign a unique ID to any HTML element.
Readme
EctAutoId
This library was generated with Angular CLI version 21.0.1.
Description
This directive can be added against any HTML element making sure that the ID used for that HTML element is unique on the HTML page.
Usage
After installing the NPM package, to use the component, first import the AutoIdDirective into your component's Imports array, e.g.:
@Component({
selector: 'my-component',
imports: [ AutoIdDirective ],
templateUrl: './my-component.component.html',
styleUrl: './my-component.css'
})In your HTML template, to use the directive, do this:
<label autoId>Hello World</label>
<p autoId>Some more text in here</p>Dependencies
None
Cost
If you find some benefit from using this package, please consider the time it took to put this together, and why not buy me a coffee? Goodness only knows that most of us would not function without coffee. All donations very much welcomed: (https://www.buymeacoffee.com/exoduscloudtech)
Licence
The licence agreement for this paid component can be found here: (https://angular-grid.net/assets/licence/licence_agreement.txt)
