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