Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

Angular js navigate-to not working

Hi team,

I had the navigate-to directive working fine yesterday, but today - not working! Could someone take a look please?

I've shared the project ("Notifium") with support. From the default page, press the button "click to go to screen2". Nothing. The page is actually refreshing very quickly, but redirecting back to the initial page. I can see this better in the emulator, which is a bit slower than the PC browser.

Any thoughts on how to fix this?

Regards,
Andy

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Angular js navigate-to not working

Hello Andrew,

Please check are there any errors in console? This (http://devcenter.appery.io/documentat...) should help.

Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

Angular js navigate-to not working

No, nothing. No errors at all, only some warnings about "'webkitMovementX' is deprecated. Please use 'movementX' instead." and the same for movementY.

By debugging, I get through the directive to the line:
Apperyio.navigateTo( attrs.navigateTo, options );

in the navigateTo directive code, and the parameter attrs.navigateTo looks to be correct - it holds the route name for the destination page.

I've not debugged further into the Apperio code.
Andy

Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

Angular js navigate-to not working

I've also created a new page, and let Appery UI create the routing, and it does the same thing.

Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

Angular js navigate-to not working

And I've just made sure all routing, page names, etc are all lower case. Still got the same problem.

Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

Angular js navigate-to not working

And I've also delved down into the Apperio object, changing the method to

navigateTo: function( routeName, options ) {
alert(this.routeName2Url(routeName, options));
$location.path( this.routeName2Url( routeName, options ) );
},

This correctly alerts of the destination page ( /addsubscription.html )

I then changed it to

navigateTo: function( routeName, options ) {
//alert(this.routeName2Url(routeName, options));
//$location.path( this.routeName2Url( routeName, options ) );
$location.path('/addsubscription.html');
},

Still does the same thing,
Andy

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Angular js navigate-to not working

Please provide us with a public app link (https://devcenter.appery.io/documenta...) and steps to reproduce.

Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

Angular js navigate-to not working

Hi Sergiy,
I've shared with support, the link is http://appery.io/app/view/4c734413-84... , or http://appery.io/app/mobile-frame?src...

To replicate, just press the "add" button in the top-right.

Andy

Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

Angular js navigate-to not working

Hi,
Any updates? I think this is a source-code issue. The source code directory/file listing is still showing there are changes to the source code that I've created manually, even though I've deleted the specific files and recreated them via the right-click menu.

I've created another app from scratch, and it's working fine.

Regards,
Andy

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Angular js navigate-to not working

Please set is as a "public" app

Return to “Issues”