Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Add access to parameters of a child root to the RouteProvider #868

Closed
michalpie opened this issue Apr 7, 2014 · 2 comments
Closed

Add access to parameters of a child root to the RouteProvider #868

michalpie opened this issue Apr 7, 2014 · 2 comments
Milestone

Comments

@michalpie
Copy link

Let us consider the recipe application described here: #837

value(RouteInitializerFn, (r, views) {
  views.configure({
    'recipes': ngRoute(
        path: '/recipes',
        view: 'recipes.html',
        mount: {
          'view': ngRoute(
              path: '/:recipeId/view',
              view: 'view.html'),
          'edit': ngRoute(
              path: '/:recipeId/edit',
              view: 'edit.html')
        })
  });
});

There is a list of recipes in an ng-view (recipes.html) and in another, nested ng-view the selected recipe is displayed.

Currently there is no easy way to highlight actually selected recipe in recipes.html. If a RouteProvider is attached to the recipes.html it does not have access to recipeId parameter.

@mhevery
Copy link
Contributor

mhevery commented Apr 16, 2014

@pavelgj can you look into this?

@mhevery mhevery added this to the Router milestone Apr 16, 2014
@pavelgj
Copy link
Contributor

pavelgj commented May 28, 2014

This can be moved to https://github.com/angular/route.dart -- not angular FR

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants