import { ChangeDetectionStrategy , Component , Optional , SkipSelf } from '@angular/core' ; import { ControlContainer } from '@angular/forms' ; @ Component ( { selector : 'app-check-me-out' , templateUrl : './check-me-out.component.html' , changeDetection : ChangeDetectionStrategy . OnPush , viewProviders : [ { provide : ControlContainer , useFactory ( dependency ? ) { return dependency ; } , deps : [ [ new Optional ( ) , new SkipSelf ( ) , ControlContainer ] ] , } , ] , } ) export class CheckMeOutComponent { }