How trigger the 'exit' application event in nativescript with angular 2 in onclick of logout button view?


I want to exit the entire application in on Tap() of logout button in nativescript app.

I referred the use of application events in below link.

I want more idea on this?

Thanks in advance…