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

feat(core): update Injector.get and TestBed.inject to support object-based flags #46761

Closed

Commits on Sep 23, 2022

  1. feat(core): support object-based DI flags in Injector.get()

    This commit applies the changes similar to the ones performed for the `inject()` function in angular@df246bb.
    
    The `Injector.get` function is updated to use previously added object-based API for options: now the flags argument supports passing an object which configures injection flags.
    
    DEPRECATED:
    
    The bit field signature of `Injector.get()` has been deprecated, in favor of the new options object.
    AndrewKushnir committed Sep 23, 2022
    Copy the full SHA
    7482814 View commit details
    Browse the repository at this point in the history
  2. feat(core): support object-based DI flags in TestBed.inject()

    This commit applies the changes similar to the ones performed for the `inject()` function in angular@df246bb.
    
    The `TestBed.inject` function is updated to use previously added object-based API for options: now the flags argument supports passing an object which configures injection flags.
    
    DEPRECATED:
    
    The bit field signature of `TestBed.inject()` has been deprecated, in favor of the new options object.
    AndrewKushnir committed Sep 23, 2022
    Copy the full SHA
    ad411b8 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2022

  1. Copy the full SHA
    6159102 View commit details
    Browse the repository at this point in the history