googlearchive / generator-angularfire

Yeoman generator for AngularFire: Angular + Firebase apps
191 stars 52 forks source link

Route generator can't take route parameters #42

Closed abryden closed 9 years ago

abryden commented 9 years ago

As far as I can tell the route generator does not have any ability to take route parameters in generating the route. This would be extremely handy.

katowulf commented 9 years ago

Not sure what this means.

abryden commented 9 years ago

I would like to be able to type something like "yo angularfire:route myroute:myRouteParam" and have it produce a cleverly named controller with $routeParams and the appropriate route.

I see now that this beyond the scope of the original generator-angular so there is probably a good reason why this doesn't happen but it would be slick.

katowulf commented 9 years ago

Thanks for explaining! I'd highly recommend submitting this to the generator-angular project. It seems reasonable to me (also like something that would already be in the issue list). If they were to add it, then it would be merged back into this project as well.