Skip to content

Commit

Permalink
fix(ng-lib): correct httpclient import (#69)
Browse files Browse the repository at this point in the history
Instead of loading in the module in ng-lib get the httpclient dep

closes #52
  • Loading branch information
SanderElias authored Dec 20, 2019
1 parent 83ba3f7 commit f355610
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion projects/scullyio/ng-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scullyio/ng-lib",
"version": "0.0.6",
"version": "0.0.7",
"repository": {
"type": "GIT",
"url": "https://github.com/scullyio/scully/tree/master/projects/scullyio/ng-lib"
Expand Down
12 changes: 9 additions & 3 deletions projects/scullyio/ng-lib/src/lib/components.module.ts
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],
};
}
}

0 comments on commit f355610

Please sign in to comment.