import { Directive , Input , OnInit , TemplateRef , ViewContainerRef } from '@angular/core' ; export interface MsRunContext { $implicit : any ; } deprecated @ Directive ( { selector : '[msRun]' } ) export class MsRunDirective implements OnInit { context : MsRunContext = { $implicit : null } ; @ Input ( ) set msRun ( value ) { this . context . $implicit = value ; } constructor ( private templateRef , private viewContainer ) { } ngOnInit ( ) { this . viewContainer . createEmbeddedView ( this . templateRef ) ; } }