I need to get the current URL present in the browser in my Angular 2 application.
In JavaScript normally we do it using the window object.
How can I do this in Angular 2 using TypeScript?
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…