This should be probably a method from `app`:

app.resetApp = function() {
    // reset all app data
    this.data = {};
    this.trigger('signout');
    this.router.navigate('', {trigger: true});
    this.router.index(); 
};