How to navigate router while using promises

i am using firebase in my project. i need to redirect user after successful sign for which i use
this. $f7router.navigate(’/home/’);
but keyword ‘this’ does not work in promises.
is there any other way to do so.

var self = this;


i tried it also but it is not working also

F7 Core? show JSfiddle?