--zhhz
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/angular?hl=en.
--zhhz
Looks like you missed some $inject or []-style annotations.It's likely going to be the Phone service in services.js. You should change:
factory('Phone', function($resource){ ... }))tofactory('Phone', ['$resource', function($resource){ ... })])
/i
Hello,
Not sure I'm doing it the angular way.
I am playing with the angular-phonecat app (https://github.com/angular/
angular-phonecat.git), it works well until I minified the services.js.
I've added this line to the controller.js:
PhoneDetailCtrl.$inject = ['$scope', '$routeParams', 'Phone'];
Here is error info:
Error: Unknown provider: aProvider <- a <- Phone ("aProvider")@http://
localhost:8000/app/lib/angular/angular.js:2492
getService("aProvider")@http://localhost:8000/app/lib/angular/
angular.js:2620 ("a")@http://localhost:8000/app/lib/angular/angular.js:
2497 getService("a",[object Array])@http://localhost:8000/app/lib/
angular/angular.js:2620
Anyone can help me out this? (I'm using closure compiler with the
simple optimize switch turned on)
Thanks.
--zhhz
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+unsubscribe@googlegroups.com.
/i
Hello,
Not sure I'm doing it the angular way.
I am playing with the angular-phonecat app (https://github.com/angular/
angular-phonecat.git), it works well until I minified the services.js.
I've added this line to the controller.js:
PhoneDetailCtrl.$inject = ['$scope', '$routeParams', 'Phone'];
Here is error info:
Error: Unknown provider: aProvider <- a <- Phone ("aProvider")@http://
localhost:8000/app/lib/angular/angular.js:2492
getService("aProvider")@http://localhost:8000/app/lib/angular/
angular.js:2620 ("a")@http://localhost:8000/app/lib/angular/angular.js:
2497 getService("a",[object Array])@http://localhost:8000/app/lib/
angular/angular.js:2620
Anyone can help me out this? (I'm using closure compiler with the
simple optimize switch turned on)
Thanks.
--zhhz
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+unsubscribe@googlegroups.com.