Skip to content

templateUrl: relative to app base or relative to their states' urls? #188

Closed
@laurelnaiad

Description

@laurelnaiad

I wonder whether having templateUrls be interpreted relative to the state's url is such a good idea. I was really confused that when I was in a state with a url '/x/y' and I specified a template 'myTempl.html' that the template was being sought at '/x/y/myTempl.html'. I would think that given the way states' urls could be pretty much anywhere, you'd want the templateUrls to be relative to the appbase instead of the state's url... I think this only appears in html5 mode (which makes sense).

I know there's changes in how angular treats app base in the works: angular/angular.js#2969 ...I wonder how they'll impact ui-router in general, if at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions