Skip to content

nested ui-view error #2763

Closed
Closed
@Luddinus

Description

@Luddinus

Hi.

I have nested view like this

<div ui-view="main">
   <div ui-view="content"></div>
</div>

And this routes

   $stateProvider.state('main', {
        url: '/',
        controller: 'MainController as main',
        template: require('./main.html')
    });

     $stateProvider.state('main.profile', {
        url: 'profile',
        views: {
            'content': {
                controller: 'ProfileController as profile',
                template: require('./profile.html')
            }
        }
    });

And I get this error: Cannot read property 'name' of undefined
at getUiViewName

I'm using 0.3 version...

What Am I missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions