This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
using ngResource when property name starts with @ #10533
Closed
Description
I have objects that have properties that begin with @. Example "@itemid" (this from the BadgerFish convention of turning an XML document into JSON, so i need to stick with this namaing convention)
I cannot figure out how to get a configuration object that ngResource will accept. For example i have tried:
$scope.menuResource = $resource(url + "/restapi/items/:itemID", {itemID: "@@itemid"});
and Angular will throw an error:badmember exception.
How can I escape the @ in the property name to get it to work with ngResource?