How to redirect to a page in ionic using res.redirect()

I have a page in ionic called loginPage. In my backend, I’m using mean stack. I have a condition like

if(!user) {

So, how can I redirect to loginPage.By using deep linking in ionic I have given segment as login. In html we use form action but What should I use inside the parenthesis of redirect in ionic?

May be this will help you.