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

ui-router-alpha.5 problems #168

Open
Mattchewone opened this issue Jun 13, 2016 · 3 comments
Open

ui-router-alpha.5 problems #168

Mattchewone opened this issue Jun 13, 2016 · 3 comments

Comments

@Mattchewone
Copy link

Since ui-router-alpha0 is not available any more, switching to ui-router-alpha.5 has seemingly broken the app.

index.js:15338Uncaught Error: Cannot combine: component|bindings with: templateProvider|templateUrl|template|notify|async|controller|controllerProvider|controllerAs|resolveAs in stateview: 'name@<route>'

This is the code in the ui-router


    // Configure this view for routing to an angular 1.5+ style .component (or any directive, really)
    if (config.component) {
      if (nonCompKeys.map(key => isDefined(config[key])).reduce(anyTrueR, false)) {
        throw new Error(`Cannot combine: ${compKeys.join("|")} with: ${nonCompKeys.join("|")} in stateview: 'name@${state.name}'`);
      }
...

Any ideas?

@phunkei
Copy link

phunkei commented Jun 30, 2016

same problem here, any solution for this?

@bora89
Copy link

bora89 commented Sep 1, 2016

I am using 1.0.0-beta1
the same problem
Have anyone solved that?

@ntower
Copy link

ntower commented Apr 4, 2017

I encountered this too. The issue was that i had two properties in my state definition which were mutually exclusive. In my case, i had defined both a component to route to, and also a template. I deleted the template and it resumed working.

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

4 participants