I am quite new to Angular 4. I have an anchor tag which upon clicking it should redirect me to a link where I need to pass parameters as well. I am not sure if my approach is right or wrong. But more importantly, how do I pass parameters? I need guidance. form.component.html: <a (click)="myFunc()" href="" target="_blank">Go to mymodule</a><br /> form.component.ts myFunc() { console.log("function called"); window.open('../myURL/mypage.jsp?rurl=' + encodeURIComponent($('display').attr('href'))); } Continue reading...