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.

Reply via email to