router.navigateByUrl not working on iOS

12 views
Skip to first unread message

Felix Sima

unread,
Oct 7, 2017, 10:08:24 AM10/7/17
to Angular and AngularJS discussion
Hello.

I have a web app, built using Angular, that works well on:

  • Windows laptops, using Chrome or Mozilla Firefox
  • android phone, using Chrome

but does not work on the iPad (iOS 9.3.5) i'm using for testing it.

The app is here:

https://ddira.deornet.com

After a click on the blue "ipad test" button, an alert will popup and after the confirmation the app should show the testing page but on iPad it remains on the same page.

On the blue button i have:

(click)="ipad()";

On the component I have:

ipad(): void {
    alert("Going to the testing page");
    this.router.navigateByUrl('/ipad');
}

Can you help me fix or understand the issue?

Felix Sima

unread,
Oct 7, 2017, 10:08:24 AM10/7/17
to Angular and AngularJS discussion
Reply all
Reply to author
Forward
0 new messages