I've encountered an issue similar to one discussed on stackoverflow, but I haven't been able to resolve it.
I'm currently on the locking
page and when a user clicks on a button, they should be redirected to the select-portfolio
page.
However, when I am on the lock
page and click the button, there is no redirect happening. It seems like nothing is being triggered...
Surprisingly, there are no errors showing up in the browser console either.
I'm uncertain about how to tackle this problem?
constructor(private service: LockingService, private router: Router, ) {}
ngOnInit(): void {
this.locking();
}
locking(): void {
this.service.getLocking().pipe(
takeUntil(this.unsubscribe$)
).subscribe(res => {
if (res.RETURNCODE === ApiResponseCodeEnum.Ok) {
}
});
}
redirect() {
this.router.navigate(['/administrations/views/select-portfolio']);
}