The documentation is a little bit ambiguous about this between the parameter 
list and a later example (I'll have to poke around in the actual source later) 
but I think if you pass the id to get() as carId instead it should work as 
expected.

Sent from my iPhone
Because reasons

> On Sep 15, 2014, at 7:14 PM, Djeimi Fipke <[email protected]> wrote:
> 
> Hello,
> 
> I'm a beginner with AngularJS, and can't find my error on this code
> 
>         var myCarResource = $resource('cars/:carId', 
>             {
>                 carId:'@id'
>             });
>         var car = myCarResource.get({id:'abc'});
> 
> Expected URL :
> .../cars/abc
> 
> The called URL is: 
> .../cars?id=abc
> 
> 
> 
> I'm using angularjs v1.2.24
> 
> Can anyone help me?
> Thanks
> -- 
> 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/d/optout.

-- 
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/d/optout.

Reply via email to