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