Add wish: work with $resource.