import { Directive , ElementRef , AfterViewInit , Renderer2 } from '@angular/core' ; @ Directive ( { selector : '[mdbDeepDirective]' , } ) export class DeepDirective implements AfterViewInit { constructor ( private el , private renderer ) { } ngAfterViewInit ( ) { this . renderer . addClass ( this . el . nativeElement , 'onFocusSelect' ) ; } }