Calling these methods invoke an $http with the specified http method, destination and parameters. When the data is returned from the server then the object is an instance of the resource class. The actions save, remove and delete are available on it as methods with the $ prefix. This allows you to easily perform CRUD operations (create, read, update, delete) on server-side data like this:

呼叫這些方法是調用$http的特定方法,目標和參數。當資料從伺服器回傳之後則該物件是 一個resource class的副本。那些動作save,remove,和delete都可以加上$前綴來使用。 這讓你很簡單的執行CRUD操作(create, read, update, delete)