Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

allow to pass a function as templateUrl in routes #1193

Closed

Description

@dcu

right now you have to do a ugly hack to achieve something similar (for example: http://stackoverflow.com/questions/11534710/angularjs-how-to-use-routeparams-in-generating-the-templateurl )

it would be nice if angularjs allows you to pass a function that receives $routeParams (and $location if possible)

what do you think?

Activity

  1. jamie-pate commented on Aug 29, 2012

    @jamie-pate

    What about parsing the templateUrl for params (just like the route is currently) and using the params from the route to choose the template dynamically?

    (I've done this in my fork, jamie-pate@dc9be17 )

  2. dcu commented on Sep 3, 2012

    @dcu
    Author

    did you send a pull request @jamie-pate ?

  3. jamie-pate commented on Sep 3, 2012

    @jamie-pate

    No, have to jump through legal loopholes first (since I need the corporate CLA signed), also want to run the code on a real site before sending a pr

  4. dcu commented on Nov 12, 2012

    @dcu
    Author

    #1524 is a possible solution for this issue.

  5. latentflip commented on Jan 29, 2013

    @latentflip
    Contributor

    Hi @dcu is this still an issue, or was it resolved by: #1524? If it's resolved would you mind closing this issue. Thanks! 👍

  6. pkozlowski-opensource commented on Feb 26, 2013

    @pkozlowski-opensource
    Member

    @dcu this should be covered by #1524. Closing for now, please reopen if things are still missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions