Browse Source

removed unneeded tooltip directive

Warafear 6 months ago
parent
commit
3e5a7def71

+ 0 - 8
src/directives/tooltip/tooltip.directive.spec.ts

@@ -1,8 +0,0 @@
-import { TooltipDirective } from './tooltip.directive';
-
-describe('TooltipDirective', () => {
-  it('should create an instance', () => {
-    const directive = new TooltipDirective();
-    expect(directive).toBeTruthy();
-  });
-});

+ 0 - 35
src/directives/tooltip/tooltip.directive.ts

@@ -1,35 +0,0 @@
-import {
-  Directive,
-  ViewContainerRef,
-  ComponentFactoryResolver,
-  Renderer2,
-  ElementRef,
-} from '@angular/core';
-// import { TooltipComponent } from 'src/app/shared-components/tooltip/tooltip/tooltip.component';
-
-@Directive({
-  selector: '[tooltip]',
-  standalone: true,
-})
-export class TooltipDirective {
-  constructor(
-    private viewContainerRef: ViewContainerRef,
-    private componentFactoryResolver: ComponentFactoryResolver,
-    private renderer: Renderer2,
-    private el: ElementRef,
-  ) {
-    // this.showTooltip();
-  }
-
-  // showTooltip() {
-  //   const factory =
-  //     this.componentFactoryResolver.resolveComponentFactory(TooltipComponent);
-  //   const componentRef = this.viewContainerRef.createComponent(factory);
-  //   componentRef.instance.content = 'This is a tooltip';
-
-  //   this.renderer.appendChild(
-  //     this.el.nativeElement,
-  //     componentRef.location.nativeElement,
-  //   );
-  // }
-}