-1down votefavorite
<http://stackoverflow.com/questions/38313662/angular2-routes-and-outlets#>
I'm trying to do blades with Angular2. So, it's a Web API call that gets a
json object that has a list of
child containers, which is then populating a ul with links and when you
click on it, it should open another blade, passing on a child container id.
I got as far as passing parameters but it apparently doesn't like the same
route: "Configuration '/blade:id' conflicts with existing route '/blade:id'"
.
The cshtml has a named outlet as well, but it does not load it into it
using this code:
this.container.childContainers.forEach(childContainer => {
var route = new AsyncRoute({
path: "/blade1:id",
name: "Blade",
loader: () =>
System.import("app/components/blade.component").then(c => c["BladeComponent"])
});
route.aux = "outlet";
this.routes.push(route);
});
Any help is greatly appreciated!
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.