3
Answers

How to use window.location.href in component.ts

nithi mano

nithi mano

6y
20.4k
1
How to use window.location.href in component.ts in angular 4.
 
I have the below jquery script in component.ts file.
  1. $('#nn').on('change'function() {  
  2. window.location.href='route.html';  
How to navigate to route.html page using window.location.href in component.ts file ??
Answers (3)