JSPM

  • Created
  • Published
  • Downloads 231
  • Score
    100M100P100Q88365F
  • License BSD-4-Clause

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

ng add @rxap/config

Setup the package @rxap/config for the workspace.

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))
);

Schematics

ng-add

Setup the package @rxap/config for the workspace.

ng g @rxap/config:ng-add
Option Type Default Description