-
Notifications
You must be signed in to change notification settings - Fork 256
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 ModuleWithProvider (#75)
update ng-Lib to be a proper moduleWithProviders
- Loading branch information
1 parent
596d092
commit 02059cd
Showing
1 changed file
with
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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], | ||
}; | ||
} | ||
} |