File

projects/atft/src/lib/raycaster/raycaster-enable.directive.ts

Implements

AfterViewInit

Metadata

Index

Methods

Constructor

constructor(raycasterService: RaycasterService)
Parameters :
Name Type Optional
raycasterService RaycasterService No

Methods

ngAfterViewInit
ngAfterViewInit()
Returns : void
import {AfterViewInit, Directive} from '@angular/core';
import {RaycasterService} from './raycaster.service';

@Directive({selector: '[atft-raycaster-enable]'})
export class RaycasterEnableDirective implements AfterViewInit {

  constructor(
    private raycasterService: RaycasterService
  ) {

  }

  ngAfterViewInit(): void {
    this.raycasterService.enable();
  }

}

results matching ""

    No results matching ""