Open insinfo opened 4 years ago
I'm not sure whether is the same, but you could check https://github.com/dart-lang/angular/issues/1314.
I had similar issue when all my nested route paths were using RoutePath.parent
but as @leonsenft commented, RouteDefinition.routePath
doesn't traverse parent references and only the path
property is actually taken in consideration in this case.
@ganigeorgiev I believe it is not the same thing
I need in my application, to have public routes with components in full screen and private routes that are navigable in a view similar to tabs, as can be seen in the image I posted, it is working, but I can't access it directly by typing the URL in browser.
I can do this very easily with Slim Framework Route with Twig template render, but in AngularDart this is not working as expected
@insinfo Are you getting a console error that says Uncaught SyntaxError: Unexpected token <
?
In that case it is probably related to https://github.com/dart-lang/sdk/issues/29247
I don't get any error, the screen goes white
I can use the application normally, as long as I navigate to the home page first, the problem only occurs if I try to navigate directly to "#/home/live" which is frustrating
Could it be that the home-component just isn't avaiable at page load? For example if you wrap it in an *ngIf="some future bool"?
I believe that this is not the problem
Would you mind sharing the contents of app_component.html?
I can't navigate directly to a parent route like the one below: "http://127.0.0.1:8080/#/home/lives" I can only navigate to the "/lives" page if I first navigate to "/home" I have two areas in the app one is a public area and the other is an area that is only accessible via authentication, so I have two router-outlets
if I navigate straight to "/home /lives" everything is blank
home_component.html
home_component.html
```htmlAdmin
route_paths.dart
```dart class RoutePaths { static final lives = RoutePath(path: 'lives', parent: PublicRoutePaths.home); static final liveEdit = RoutePath(path: '${lives.path}/edit/:id', parent: PublicRoutePaths.home); static final liveNew = RoutePath(path: '${lives.path}/new', parent: PublicRoutePaths.home); } class PublicRoutePaths { //public routes static final livePublic = RoutePath(path: 'livePublic'); static final home = RoutePath(path: 'home'); } ```routes.dart
```dart static final lives = RouteDefinition( routePath: RoutePaths.lives, component: live_list_template.LiveListComponentNgFactory, ); static final liveEdit = RouteDefinition( routePath: RoutePaths.liveEdit, component: live_form_template.LiveFormComponentNgFactory, ); static final liveNew = RouteDefinition( routePath: RoutePaths.liveNew, component: live_form_template.LiveFormComponentNgFactory, ); static final all =