Skip to content

Commit e4f7bc0

Browse files
committed
Import inject function
1 parent 6a45784 commit e4f7bc0

File tree

1 file changed

+1
-1
lines changed
  • packages/apollo-angular/schematics/install

1 file changed

+1
-1
lines changed

packages/apollo-angular/schematics/install/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function importSetup(options: Schema): Rule {
195195
if (isStandaloneApp(host, mainPath)) {
196196
return addRootProvider(options.project, ({ code, external }) => {
197197
return code`${external('provideApollo', 'apollo-angular')}(() => {
198-
const httpLink = inject(${external('HttpLink', 'apollo-angular/http')});
198+
const httpLink = ${external('inject', '@angular/core')}(${external('HttpLink', 'apollo-angular/http')});
199199
200200
return {
201201
link: httpLink.create({

0 commit comments

Comments
 (0)