ngUpgraders / ng-forward

The default solution for those that want to write Angular 2.x style code in Angular 1.x
410 stars 36 forks source link

ui-router-alpha.5 problems #168

Open Mattchewone opened 8 years ago

Mattchewone commented 8 years ago

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 commented 8 years ago

same problem here, any solution for this?

bora89 commented 7 years ago

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

ntower commented 7 years ago

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.