@joinbox/loopback-component-angular-sdk

2.1.0 • Public • Published

loopback-component-angular-sdk

Loopback angualr sdk deliverd over the api

Configuration

Add the configuration in your component-config.json

"@joinbox/loopback-component-angular-sdk": {
    "mountPath": "/sdk"
    "cacheOptions": {}
}

Usage

Call the configured endpoint http://localhost:10100/sdk?=api.example.com and the loopback SDK will be returned.

Params

  • options: An Object with option for building the SDK (name: default value):
    • ngModuleName: 'lbServices'
    • apiUrl: ${req.headers.host}/${app.get('restApiRoot')} // request-host/api-root-path
    • includeCommonModules: true
    • namespaceModels: false
    • namespaceCommonModels: false
    • namespaceDelimiter: '.'
    • modelsToIgnore: []

Cache options

See lru-cache docs

Readme

Keywords

none

Package Sidebar

Install

npm i @joinbox/loopback-component-angular-sdk

Weekly Downloads

0

Version

2.1.0

License

MIT

Unpacked Size

12.4 kB

Total Files

21

Last publish

Collaborators