conversion inputs to components
This commit is contained in:
19
bizmatch/src/app/components/tooltip/tooltip.component.ts
Normal file
19
bizmatch/src/app/components/tooltip/tooltip.component.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { Component, Input } from '@angular/core';
|
||||
import { initFlowbite } from 'flowbite';
|
||||
|
||||
@Component({
|
||||
selector: 'app-tooltip',
|
||||
standalone: true,
|
||||
imports: [CommonModule],
|
||||
templateUrl: './tooltip.component.html',
|
||||
})
|
||||
export class TooltipComponent {
|
||||
@Input() id;
|
||||
@Input() text;
|
||||
ngOnInit() {
|
||||
setTimeout(() => {
|
||||
initFlowbite();
|
||||
}, 10);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user