Skip to content

Default <ui-view /> for abstract states without template? #325

@vegardlarsen

Description

@vegardlarsen

Would it make sense to implement a default template containing a single <ui-view /> for abstract states? Consider the following setup:

$stateProvider
    .state("sub", { url: '/sub', abstract: true, template: '<ui-view />' })
    .state("sub.home", { url: '', templateUrl: 'subHome.html' })
    .state("sub.details", { url: '/:id', templateUrl: 'subDetails.html'})

It would allow you to drop the template on the abstract state, something which tripped me up for a while trying to create a hierarchy just like this.

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