File

src/sample.directive.ts

Metadata

selector [sampleDirective]

Constructor

constructor(el: ElementRef)
Parameters :
Name Type Optional
el ElementRef no
import { Directive, ElementRef } from '@angular/core';

@Directive({
  selector: '[sampleDirective]'
})
export class SampleDirective {

  constructor(private el: ElementRef) {
  }

}

results matching ""

    No results matching ""