I have a parent state (parent), and a child state (parent.child)

    $stateProvider
        .state('parent', {
            url: '/parent',
            templateUrl: 'views/parent.html',
            controller: 'parentController',
        })
        .state('parent.child', {
            url: '/:id',
            templateUrl: 'views/child.html',
            controller: 'childController',
        });

The parent view contains the nested ui-view

ie: In views/parent.html:

    <h1>Child:</h1>
    <div ui-view></div>

 When I change to the child state, the parent state's url is being
*prefixed* to the templateUrl.

ie: the templateUrl is being resolved as /parent/views/child.html

This fails because /parent/views/child.html doesn't exist. (The file is
stored under/views/child.html)

How can I configure ui-router not to prefix the parent state's url onto the
templateUrl?

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to