Ionic 5 Router Issue


Navigation from (onclick) event using this.router.navigateByUrl(‘login’); changes route, but component not being rendered. After second click on any part of screen, component is rendered.


If you are using react , check if


is rendered twice

Hi, thanks for your response. I am using angular, not react

Could you share a little bit of code? Are you using (onclick) or just (click) does the function get called?