Created
May 19, 2022 07:57
-
-
Save NetanelBasal/86da258aa0709523c9f495f2b6d40990 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const HTTP = new InjectionToken('', { | |
providedIn: 'root', | |
factory() { | |
return inject(HttpClient); | |
}, | |
}); | |
@Injectable() | |
export class FooService { | |
http = inject(HttpClient); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment