replace calls to $resource with the ProductsLoader