Switched to angular resource for backend communication