Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #6432
Closed
Open
Issue created May 26, 2020 by Administrator@rootContributor

[REQ][typescript-angular] Angular 9 providedIn support

Created by: UnleashSpirit

Hello, Angular 9 brings new level for @Injectable, 'any' and 'platform'

Is your feature request related to a problem? Please describe.

No

Describe the solution you'd like

Removing the 'providedInRoot' option as boolean and gives a new one. Something like 'providedIn' with all the choices :

  • none
  • root
  • any
  • platform

May be with keeping default as root ? And may be a ApiModule.forPlatform() ? (don't even know if it makes sense)

Additional context

I face that 'issue', which is not a real one for now more an improvement, during Angular Elements creation (WebComponent). In my case I have a service provided un 'platform' level which also depend on generated service from openapi v3. But a 'platform' service can't use a root level service (null injector)

In any case I think that supporting the new levels of Angular 9 Injectable would be appreciate

Assignee
Assign to
Time tracking