Amit Kumar Singh

Amit Kumar Singh

  • 403
  • 4k
  • 202.3k

How to create method for multiple getter in TypeScript

Jun 8 2022 3:23 AM

Hi,

 

get App1(): boolean {

this. service.app1;

}

get App2(): boolean {

this. service.app2;

}

get App3(): boolean {

this. service.app3;

}

get App4(): boolean {

this. service.app4;

}

get App5(): boolean {

this. service.app5;

}

 

How to create method for all above 5 getter. 

 

Thanks in Advance


Answers (2)