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): Introduce TestBed.inject to replace TestBed.get #32200

Closed
wants to merge 1 commit into from
Closed

feat(core): Introduce TestBed.inject to replace TestBed.get #32200

wants to merge 1 commit into from

Commits on Aug 22, 2019

  1. feat(core): Introduce TestBed.inject to replace TestBed.get

    TestBed.get is not type safe, fixing it would be a massive breaking
    change. The Angular team has proposed replacing it with TestBed.inject
    and deprecate TestBed.get.
    
    Deprecation from TestBed.get will come as a separate commit.
    
    Issue #26491
    Fixes #29905
    
    BREAKING CHANGE: Injector.get now accepts abstract classes to return
    type-safe values. Previous implementation returned `any` through the
    deprecated implementation.
    Goodwine committed Aug 22, 2019
    Configuration menu
    Copy the full SHA
    421f99f View commit details
    Browse the repository at this point in the history