add angular $resource example