App Service
Overview
The AppService
is responsible for retrieving the application configuration from the server. It provides a method to fetch the configuration using an HTTP GET request.
Methods
getApp()
Retrieves the application configuration from the server.
Returns
Observable<CCApp>
: An observable that emits the application configuration.
Remarks
This method constructs an HTTP GET request to fetch the application configuration using the app
parameter from the global configuration. If the request fails, it logs the error to the console and returns an empty observable.
Example
appService.getApp().subscribe(appConfig => {
console.log(appConfig);
});