import { Input } from '@angular/core' ; import { ChangeDetectionStrategy , Component } from '@angular/core' ; import { AppService } from './app.service' ; @ Component ( { selector : 'app-root' , template : 'ng-mocks:{{ scope }}' , changeDetection : ChangeDetectionStrategy . OnPush , } ) export class AppComponent { @ Input ( ) public readonly scope = 'default' ; public constructor ( public readonly service ) { } }