What is the method for redirecting the user to a completely external URL in Angular 2. For example, if I need to redirect the user to an OAuth2 server in order to authenticate, how would I do that?
Location.go()
, Router.navigate()
, and Router.navigateByUrl()
are fine for sending the user to another section (route) within the Angular 2 app, but I can't see how they could be used to redirect to an external site?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…