Sometimes, it is convenient to start implementing the frontend before having the backend ready. The backend does not expose an API, yet, but you want to proceed with the frontend development. How to mock REST API in AngularTS until the real API is ready?