Skip to content

Commit

Permalink
Import inject function
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed Sep 19, 2024
1 parent 5c7520d commit 4f149ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/apollo-angular/schematics/install/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function importSetup(options: Schema): Rule {
if (isStandaloneApp(host, mainPath)) {
return addRootProvider(options.project, ({ code, external }) => {
return code`${external('provideApollo', 'apollo-angular')}(() => {
const httpLink = inject(${external('HttpLink', 'apollo-angular/http')});
const httpLink = ${external('inject', '@angular/core')}(${external('HttpLink', 'apollo-angular/http')});
return {
link: httpLink.create({
Expand Down

0 comments on commit 4f149ea

Please sign in to comment.