Hello

I have a controller that loads after the promise inside the resolve 
executes.

The code is similar to this one:

*when('path', {*
* templateUrl: templatepath,*
* controller: myController,*
* resolve: {*
*  data: function( $q ){*
*    .... *

*    return promiseobject*
*  }*
* }*
*});*

However, when I inject data into myController, it gives the following error 
message:

*Error: [$injector:unpr] Unknown provider dataProvider <- data*

What's going on?

Thanks

PS: I have a similar code for another controller and it works fine, so I 
can't find an explanation for this error




-- 
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