We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
inject
1 parent 6a45784 commit e4f7bc0Copy full SHA for e4f7bc0
packages/apollo-angular/schematics/install/index.ts
@@ -195,7 +195,7 @@ function importSetup(options: Schema): Rule {
195
if (isStandaloneApp(host, mainPath)) {
196
return addRootProvider(options.project, ({ code, external }) => {
197
return code`${external('provideApollo', 'apollo-angular')}(() => {
198
- const httpLink = inject(${external('HttpLink', 'apollo-angular/http')});
+ const httpLink = ${external('inject', '@angular/core')}(${external('HttpLink', 'apollo-angular/http')});
199
200
return {
201
link: httpLink.create({
0 commit comments