routing/navigation in ngclient

Forum to discuss the new web client version of Servoy.

routing/navigation in ngclient

Postby derk.hulshof » Mon Sep 14, 2015 1:10 pm

hi all,

I am building a ngclient application in servoy 8 final (3020).

In basic AngularJS I can use the angular-ui router to provide the application menu navigation:
example:
link: <a ui-sref="home">Home</a>
JS: $stateProvider.state('home', {
url: "/",
views: {
"contentgoeshere": { templateUrl: "/url"}
}
})
html content div: <div ui-view="contentgoeshere"></div>

to route through pages and display the html of the url called by the state provider.

For now I have 2 questions:
1. What is the best way to accomplish (above type of) routing in Servoy NGclient, and does someone have a little example?
2. Is there an overview of ng-base URLs for the application.

More advice and examples are always welcome. :D

Tnx in advance
Derk
derk.hulshof
 
Posts: 108
Joined: Tue Dec 03, 2013 9:18 am
Location: Netherlands

Re: routing/navigation in ngclient

Postby jcompagner » Thu Oct 29, 2015 1:45 pm

don't think this will be fully supported in servoy
Currently we have "routing" based on the current main showing form, don't think you can really hook into this
So the only urls that we have is /solutions/[solutionname]/index.html and then with ?form=xxxx where xxxx is the current main form. (this is used for the back and forward buttons)

So i am not sure what happens if you add something like that in a component, also what is that template url? I guess you kind of want to switch in servoy right? Is that template url a form url? (so kind of a tabpanel)?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: routing/navigation in ngclient

Postby derk.hulshof » Thu Oct 29, 2015 2:57 pm

It didnt work.
I found already a solution with the tabpanel.

Tnx for the reply
derk.hulshof
 
Posts: 108
Joined: Tue Dec 03, 2013 9:18 am
Location: Netherlands


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 11 guests