# ng.config

> ## problem

Latest version **0.1.0** (published 2015-08-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install ng.config
pnpm add ng.config
yarn add ng.config
bun add ng.config
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2015-08-27 |
| First published | 2015-07-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Dennis Sänger |
| Maintainers | ds82 |
| Keywords | angular, ng, app, config |

## Links

- npm: https://www.npmjs.com/package/ng.config
- Repository: https://github.com/ds82/ng.config
- Homepage: https://github.com/ds82/ng-app-config#readme
- Issues: https://github.com/ds82/ng-app-config/issues
- npm.io page: https://npm.io/package/ng.config

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 0.1.0 (latest) — 2015-08-27
- 0.0.1 — 2015-07-29

## README

# ng.config

## problem

You almost always need a central config in your angular app. May it be for the root URL for your server API, the default language, the default theme or whatever parameter you may configure in your app.

## solution

This module provides a super-simple $config service for your angular app.

## usage

```bash
npm i --save ng.config
```

```js
angular.module('app', ['ng.config'])
  .run(Setup);

Setup.$inject = ['$config'];
function Setup($config) {
  $config.SERVER_BASE = 'api/v1/';
}
```

All your services can than use this config:

```js
angular.module('some.module', ['ng.config'])
  .service('SomeService', Service);

SomeService.$inject = ['$config', '$resource'];
function SomeService($config, $resource) {
  return $resource($config.SERVER_BASE + 'some',
  // ...
  );
}
```

---
_Source: https://npm.io/package/ng.config · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
