Posts by daminufe • 136 points
1 post
-
2
votes2
answers869
viewsA: Passing a controller variable to a service
You should import the $stateParams and use the $stateParams.id. Also in the $http.get() you must use the object config to stay as shown below. This way it will work return…