Skip to content

templateUrl and views attribute is mutually exclusive? #48

@giosakti

Description

@giosakti

I have this code below:

  $stateProvider
    .state "standard",
      abstract: true
      templateUrl: "assets/layouts/standard.html.haml"
      views:
        "header@standard":
          templateUrl: "assets/layouts/header.html.haml"
        "navigation@standard":
          templateUrl: "assets/layouts/navigation.html.haml"
        "footer@standard":
          templateUrl: "assets/layouts/footer.html.haml"

When i try to load the corresponding page, which has "standard" as its parent, the lone 'templateUrl' ("assets/layouts/standard.html.haml") will be ignored and the standard.html.haml template won't be loaded.

However when i commented out the views, that templateUrl attribute will work normally.

Is this an intended behavior? can you elaborate on this?

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