Skip to content

Commit f355610

Browse files
authored
fix(ng-lib): correct httpclient import (#69)
Instead of loading in the module in ng-lib get the httpclient dep closes #52
1 parent 83ba3f7 commit f355610

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

projects/scullyio/ng-lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@scullyio/ng-lib",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"repository": {
55
"type": "GIT",
66
"url": "https://github.com/scullyio/scully/tree/master/projects/scullyio/ng-lib"
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1-
import {HttpClientModule} from '@angular/common/http';
1+
import {HttpClient} from '@angular/common/http';
22
import {NgModule} from '@angular/core';
33
import {ScullyContentComponent} from './scully-content/scully-content.component';
44

55
@NgModule({
66
declarations: [ScullyContentComponent],
7-
imports: [HttpClientModule],
87
exports: [ScullyContentComponent],
98
})
10-
export class ComponentsModule {}
9+
export class ComponentsModule {
10+
static forRoot() {
11+
return {
12+
NgModule: ComponentsModule,
13+
deps: [HttpClient],
14+
};
15+
}
16+
}

0 commit comments

Comments
 (0)