Loopback angualr sdk deliverd over the api
Add the configuration in your component-config.json
"@joinbox/loopback-component-angular-sdk": {
"mountPath": "/sdk"
"cacheOptions": {}
}
Call the configured endpoint http://localhost:10100/sdk?=api.example.com
and the loopback SDK will be returned.
- 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: []
See lru-cache docs