Use angular resource