Page 1 of 2

Angular js navigate-to not working

Posted: Fri Nov 20, 2015 12:26 am
by Andrew Peacock

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


Angular js navigate-to not working

Posted: Fri Nov 20, 2015 9:31 am
by Serhii Kulibaba

Hello Andrew,

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


Angular js navigate-to not working

Posted: Fri Nov 20, 2015 7:18 pm
by Andrew Peacock

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


Angular js navigate-to not working

Posted: Fri Nov 20, 2015 8:25 pm
by Andrew Peacock

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


Angular js navigate-to not working

Posted: Fri Nov 20, 2015 8:28 pm
by Andrew Peacock

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


Angular js navigate-to not working

Posted: Fri Nov 20, 2015 8:56 pm
by Andrew Peacock

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


Angular js navigate-to not working

Posted: Sun Nov 22, 2015 1:56 pm
by Serhii Kulibaba

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


Angular js navigate-to not working

Posted: Sun Nov 22, 2015 4:41 pm
by Andrew Peacock

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


Angular js navigate-to not working

Posted: Wed Nov 25, 2015 11:22 am
by Andrew Peacock

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


Angular js navigate-to not working

Posted: Wed Nov 25, 2015 1:55 pm
by Serhii Kulibaba

Please set is as a "public" app