How to use path variable instead of request parameter with AngularJS $resource How to use path variable instead of request parameter with AngularJS $resource angularjs angularjs

How to use path variable instead of request parameter with AngularJS $resource


function ManagedCourseController($scope, $resource) {    var ManagedCourse = $resource("rest/managedCourse/:courseId/:id",        {courseId:'@id'});    ...

should do it