Skip to content

Commit 02059cd

Browse files
LayZeeDKSanderElias
authored andcommitted
fix(ng-lib): correct ModuleWithProvider (#75)
update ng-Lib to be a proper moduleWithProviders
1 parent 596d092 commit 02059cd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import {HttpClient} from '@angular/common/http';
2-
import {NgModule} from '@angular/core';
2+
import {ModuleWithProviders, NgModule} from '@angular/core';
33
import {ScullyContentComponent} from './scully-content/scully-content.component';
44

55
@NgModule({
66
declarations: [ScullyContentComponent],
77
exports: [ScullyContentComponent],
88
})
99
export class ComponentsModule {
10-
static forRoot() {
10+
static forRoot(): ModuleWithProviders<ComponentsModule> {
1111
return {
12-
NgModule: ComponentsModule,
13-
deps: [HttpClient],
12+
ngModule: ComponentsModule,
13+
providers: [HttpClient],
1414
};
1515
}
1616
}

0 commit comments

Comments
 (0)