You need to change the value of API endpoint in file src/environments/environment.prod.ts
To build an app for production:
$ ng build --prod
The above command will create a dist directory that you can deploy on any Hosting. If there is any issue please google it or if you don't find any solution please feel free to report us, we will look into it.