Skip to content

Commit

Permalink
fix(ng-lib): correct ModuleWithProvider (#75)
Browse files Browse the repository at this point in the history
update ng-Lib to be a proper moduleWithProviders
  • Loading branch information
LayZeeDK authored and SanderElias committed Dec 21, 2019
1 parent 596d092 commit 02059cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions projects/scullyio/ng-lib/src/lib/components.module.ts
@@ -1,16 +1,16 @@
import {HttpClient} from '@angular/common/http';
import {NgModule} from '@angular/core';
import {ModuleWithProviders, NgModule} from '@angular/core';
import {ScullyContentComponent} from './scully-content/scully-content.component';

@NgModule({
declarations: [ScullyContentComponent],
exports: [ScullyContentComponent],
})
export class ComponentsModule {
static forRoot() {
static forRoot(): ModuleWithProviders<ComponentsModule> {
return {
NgModule: ComponentsModule,
deps: [HttpClient],
ngModule: ComponentsModule,
providers: [HttpClient],
};
}
}

0 comments on commit 02059cd

Please sign in to comment.