on 12-08-2014 1:09 PM
Hi,
I am using the routing examples from Best Practise tutorial.
My Problem is how the give an xml view an id?
Can I define the id in the routing table at component.js?
If there is no way to set an id to an xmlview, how the get the id of the view, where the router has navigated to?
kind regards,
Kai
Tags edited by: Michael Appleby
You don't need to assign ids to views for the routing to work.
What you need, however, is the targetControl parameter in the routing config, which has to be the id of a control. This can either be a global id, or an id inside a view. For that latter to work, you'll need to maintain a rootView in your Component metadata (like in the sample app). If you compare the routing config (targetControl) with the XML view that is references by rootView, you'll see what I'm talking about.
You can easily look at the XML source via Chrome's Network tab.
- Max
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any new ideas community?
Or couldn't you understand my question?
kind regards,
Kai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.