Package Exports
- random-coloured-hashtags
- random-coloured-hashtags/package.json
Readme
RandomColouredHashtagsLib
This project was generated with Angular CLI version 18.2.4.
To use the random-coloured-hashtags library in your Angular application, follow these steps:
Install the library:
npm install random-coloured-hashtags
Import the module in your application module / standalone component imports:
import { RandomColouredHashtagsModule } from 'random-coloured-hashtags';
@NgModule({
declarations: [/* your components */],
imports: [
RandomColouredHashtagsModule,
/* other modules */
],
bootstrap: [/* your main component */]
})
export class AppModule { }
OR
import { Component } from '@angular/core';
import { RandomColouredHashtagsModule } from 'random-coloured-hashtags';
@Component({
selector: 'app-home',
standalone: true,
imports: [RandomColouredHashtagsModule],
templateUrl: './home.component.html',
styleUrl: './home.component.css'
})
export class HomeComponent {
...
}
Use the component in your template:
<lib-random-coloured-hashtags
[count]="5"
[hashtagsList]="['#Angular', '#JavaScript', '#WebDevelopment']">
</lib-random-coloured-hashtags>