How to use window.location.href in component.ts in angular 4.
I have the below jquery script in component.ts file.
- $('#nn').on('change', function() {
- window.location.href='route.html';
How to navigate to route.html page using window.location.href in component.ts file ??

Manav PandyaRank #166 · 14.3K reputationPosted May 2, 2018, 7:59 AM EDT
nithi manoRank #8,652 · 218 reputationPosted May 2, 2018, 8:28 AM EDT
nithi manoRank #8,652 · 218 reputationPosted May 2, 2018, 8:32 AM EDT