Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoEntityService: Support supplying a function to host in config. #232

Open
colesanders opened this issue Nov 15, 2022 · 0 comments
Open
Assignees

Comments

@colesanders
Copy link
Contributor

AutoEntityService

Feature Request:

When providing the host to the AutoEntityServiceModule config, currently only a string can be passed. Allowing a function to be provided would allow the host to be fetched dynamically at runtime instead of bootstrap. This would be helpful for hybrid apps and other use cases where the api endpoint might be dependent on the request or platform.

NgrxAutoEntityServiceModule.forRoot({
  host: ((entityInfo: IEntityInfo, operation: string, criteria: EntityCriteria) => string) | string;
})
@colesanders colesanders self-assigned this Nov 15, 2022
colesanders added a commit that referenced this issue Nov 15, 2022
  + Added ability to pass an async function as url prefix option
  + Added support for dependency injection to config
  + Added package linking for lib
  + Added auto entity service to test app

Issue #232
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant