import { Directive , ElementRef } from '@angular/core' ; import { FocusableOption } from '@angular/cdk/a11y' ; @ Directive ( { selector : '[appSurveyInput]' } ) export class SurveyInputDirective implements FocusableOption { constructor ( private element ) { } focus ( ) { this . element . nativeElement . focus ( ) ; } }