import { Injectable } from '@indiv/di' ; import { SharedModule } from '../modules/share.module' ; @ Injectable ( { isSingletonMode : true , providedIn : SharedModule , } ) export class PrivateService { public isPrivate : boolean = true ; public change ( ) { this . isPrivate = false ; } }