JSPM

  • Created
  • Published
  • Downloads 104
  • Score
    100M100P100Q88549F
  • License MIT

Simple config file manager for angular applications.

Package Exports

  • @rxap/config

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rxap/config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@rxap/config

npm version commitizen friendly styled with prettier Libraries.io dependency status for latest release, scoped npm package npm NPM

Simple config file manager for angular applications.

Installation

yarn add @rxap/config @rxap/utilities@^12.0.4

Get started

Update the angular application main.ts to support @rxap/config.


// (optional) Defines a list of configuration urls.
ConfigService.Urls = ['/config/config.json'];

// Ensures that the configuration is loaded before the angular application is  started
Promise.all([ConfigService.Load()]).then(() =>
  platformBrowserDynamic()
    .bootstrapModule(AppModule)
    .catch((err) => console.error(err))
);