Exit app in windows


#1

How to exit the app programatically for windows platform?

I have an option in my app to exit the application

<button ion-button (click)="closeApp()">Close App</button>
closeApp() {
   this.platform.exitApp();
}

This works in android but in windows i get the error as:
cannot read property exitApp() of undefined