-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ng-lib): correct httpclient import (#69)
Instead of loading in the module in ng-lib get the httpclient dep closes #52
- Loading branch information
1 parent
83ba3f7
commit f355610
Showing
2 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
import {HttpClientModule} from '@angular/common/http'; | ||
import {HttpClient} from '@angular/common/http'; | ||
import {NgModule} from '@angular/core'; | ||
import {ScullyContentComponent} from './scully-content/scully-content.component'; | ||
|
||
@NgModule({ | ||
declarations: [ScullyContentComponent], | ||
imports: [HttpClientModule], | ||
exports: [ScullyContentComponent], | ||
}) | ||
export class ComponentsModule {} | ||
export class ComponentsModule { | ||
static forRoot() { | ||
return { | ||
NgModule: ComponentsModule, | ||
deps: [HttpClient], | ||
}; | ||
} | ||
} |