I am learning AngularJS and reading its API
It says "If the parameter value is prefixed with @ then the value of that parameter is extracted from the data object " with code example:
var User = $resource('/user/:userId', {userId:'@id'});
var user = User.get({userId:123}, function() {
user.abc = true;
user.$save();
});
I am so slow that after the example I still don't get what the prefixed @ means/does. Could someone please give me some examples With and Without the @ and elaborate it? Thanks...