You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Moe Myat Zaw edited this page Jun 14, 2020
·
6 revisions
The NGMODULE for providing HttpConfigProvider.
Module Class Overview
exportclassHttpConfigProviderModule{/** * Call this method to provide options for configuring the `HttpConfigProvider`. * @param options An option object for `HttpConfigProvider`. */staticconfigure(options: HttpConfigProviderOptions): ModuleWithProviders<HttpConfigProviderModule>;}
Module Setup
import{ConfigModule}from'@dagonmetric/ng-config';import{HttpConfigProviderModule}from'@dagonmetric/ng-config/http-config';
@NgModule({imports: [// Other module imports// ng-config modulesConfigModule.configure(),HttpConfigProviderModule.configure({endpoint: '/api/v1/configuration'})]})exportclassAppModule{}