Skip to content

Templates don't load when 'resolve' is present #14

@techguydave

Description

@techguydave

I have a few ui-router states that use promises inside of resolves to wait on an API.

.state('videosDetails', {
  url: '..',
  templateUrl: '...',
  resolve: {
    videoPromise: function(Restangular, $stateParams){
      ...
    }
  },
  controller: '...'
})

With the userapp module initiated in the run() block, though, any state with a resolve doesn't load properly. I can tell that the promises are being hit, because my API server responds to the requests. The template doesn't seem to load, though.

I thought it was just the promises causing an issue, but even using empty resolves like your documentation states creates the same issue. When commenting out the user.init({ appId: '...' }); part (yet still leaving the UserApp module declaration), everything works again.

I get no errors in the console.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions