-
-
Notifications
You must be signed in to change notification settings - Fork 241
page-router-outlet, router-outlet, RadSideDrawer and ideal route setups #343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Have you tried adding a layout around page-router-outlet? I have a similar setup here. At the moment I am using router-outlet but I tried with page-router-outlet and the app starts with bindings activated and working. Anyway if using page-router-outlet the drawer doesn't open anymore after changing page for the first time.. |
A layout around |
http://stackoverflow.com/questions/38225358/angular2-router-cannot-find-primary-outlet-to-load-homecomponent I feel like based on that, it would appear that if the sidedrawer is in process of rearranging the layouts at time the router is trying to find the |
Hey, @NathanWalker. There is a hacky fix in the |
hmmm hacky version. I'm Trying to use the
Main template: <template drawerMain>
<StackLayout>
<Label [text]="mainContentText" textWrap="true" class="drawerContentText"></Label>
<Button text="OPEN DRAWER" (tap)=openDrawer()></Button>
<StackLayout>
<router-outlet></router-outlet>
</StackLayout>
</StackLayout>
</template> |
+1 Same problem here with Router-Outlet |
Currently the RadSideDrawer and the Here is the mirror issue in the nativescript-ui samples repo: telerik/nativescript-ui-samples-angular#13 |
Hi @NathanWalker @lukabers @matt4446 , The mentioned by @vakrilov issue has already being fixed and is going through internal tested. If all is well you can expect the fix for it available in the next official version (1.2.0) of nativescript-telerik-ui/nativescript-telerik-ui-pro which is expected to be released by the end of next week (12 August 2016). |
Thank you @VladimirAmiorkov I could not be more excited to see a fix for this land 👍 |
'router-outlet' seems to play nicely with the current versions. "tns-core-modules": "next",
"nativescript-angular": "next",
...
"nativescript-telerik-ui-pro": "~1.3.1", There are some changes to the content selectors as well: |
I have the similar setup mentioned by @NathanWalker at https://www.youtube.com/watch?v=jtF7TjlxM8I and now it works without any error 👍 . But I am experiencing one issue of removal of child component in Please check below .gif describing the issue. Here, in root component, I have a Now, the issue is when we navigate from Main Page to Detail Page, the child component in It will be great if anyone know any solution or work-around to cache the active child component in |
please can you share code with me |
I got this working, thanks again for the fix. |
@NathanWalker please can you share code i really need it . |
@NathanWalker thanks for the sahre |
I tested the described issue on both android and iOS and was able to observe it only on iOS. It looks like there is an issue of how backwards navigation with |
@shripalsoni04 @VladimirAmiorkov Was that master-detail-navigation-destroys-the-master issue ever fixed, or do you have a workaround? I have the same issue on both iOS and Android.. UPDATE: fixed it, really happy now with how the sidedrawer works in my app. I can navigate a few levels deep (and go back without the master being destroyed) and can even pop back to the root with The key was adding a |
Has anyone using this setup had any luck on Android? I can get everything working great on iOS using the above examples, but not the case on Android. Once I navigate to a detail page I can never go back to the original home page, the app just dies. I'm left with with an empty outlet and a sidedrawer that doesn't work, with no errors thrown. |
To update my last comment, the issue was enabling showOverNavigation. Works fine on iOS, doesn't work on Android. When you go back to the home route on Android it breaks everything. I just stripped that out. |
@EddyVerbruggen navigation also breaks if you try to navigate from a detail screen (in a deeper level) to another menu-item based master page.... Furthermore, the navigation option you mentions seems to break too in some cases. |
@cindy-m That's right, but I've never had the need to navigate 2 levels up at once. Would be nice to know how to do that of course. |
I'm not sure if this should be reported on nativescript-ui repo since it's somewhat related to v3 router but also to RadSideDrawer. Please view the 2 following videos when possible.
Current issue that would be great if some sort of workaround were available:
https://www.youtube.com/watch?v=ORmWJuRYMHE
Ideal route setup that I hope will be supported when the v3 routing support is complete here?
I would like to know if I can do the following and/or if a workaround exists for me to get it working (this would be preferred over the above so if this can be done, the above can be ignored):
https://www.youtube.com/watch?v=jtF7TjlxM8I
The text was updated successfully, but these errors were encountered: