import { Component , ChangeDetectionStrategy , MarkForCheck , TMarkForCheck } from '@indiv/core' ; @ Component ( { selector : 'root-component' , templateUrl : '/components/root-component/template.html' , changeDetection : ChangeDetectionStrategy . OnPush } ) export default class RootComponent { public showSideBar : string = 'open' ; public currentVersion : string = 'v1.2.2' ; public nestVersion : string = 'v2.0.7' ; @ MarkForCheck ( ) public marker : TMarkForCheck ; public changeShowSideBar ( ) { if ( this . showSideBar === 'open' ) { this . showSideBar = 'close' ; } else { this . showSideBar = 'open' ; } this . marker ( ) ; } }