Then I get following error: Unknown provider: productProvider <- product
I saw it working without specifying it in array of strings for DI ( the link I provided ). It is not a service, but route-specific variable, which once resolved *should* be injected into controller ( without dependency for it in array ). W dniu sobota, 28 grudnia 2013 23:06:47 UTC+1 użytkownik Daniel Tabuenca napisał: > > In your controller injection list you are missing “products”. The array of > strings for dependency injection needs to match the number of parameters > into your controller function: > > *This:* > > var productDetailController = > catalogControllers.controller('ProductDetailController', > > ['$scope', > function($scope, product) { > ..... > ] > > ` > > *Should become:* > > var productDetailController = > catalogControllers.controller('ProductDetailController', > > ['$scope', 'product' > function($scope, product) { > ..... > ] > > ` > > -- 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 angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.