Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with resolve in ui-router #32

Open
cambridgemike opened this issue Nov 30, 2016 · 1 comment
Open

Doesn't work with resolve in ui-router #32

cambridgemike opened this issue Nov 30, 2016 · 1 comment

Comments

@cambridgemike
Copy link

This doesn't seem to work with ui-router resolve. Is this a known limitation?

@albertpeiro
Copy link

albertpeiro commented Aug 9, 2017

Hey @cambridgemike I checked the list of issues and read yours cause I'm using ui-router.
I just installed the plugin and it does seem to work with ui-router out of the box
See generated output:

.state('main', {
                url: '/',
                views: {
                    'navbar@': {
                        template: __webpack_require__(8)
                    }
                },
                resolve: {
                  'AdminAppData': ["AdminApp", function (AdminApp) {
                    // This makes the controller wait until the initial config has been loaded
                    return InitPromise;
                  }]
                }
            })

I just added the webpack config like this:

var production = {

  module: {
    rules: [
      {
        test: /\.js$/,
        use: [
          {
            loader: 'ng-annotate-loader',
            options: {
              add: true,
              map: false,
            }
          }
        ]
      }
    ]
  },
...

hope it helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants