File tree 1 file changed +2
-5
lines changed
projects/material-css-vars/src/lib
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -14,19 +14,16 @@ import { MaterialCssVarsService } from "./material-css-vars.service";
14
14
@NgModule ( {
15
15
imports : [ CommonModule ] ,
16
16
} )
17
+ // eslint-disable-next-line @typescript-eslint/no-extraneous-class
17
18
export class MaterialCssVarsModule {
18
19
static forRoot (
19
20
config ?: Partial < MaterialCssVariablesConfig > ,
20
21
) : ModuleWithProviders < MaterialCssVarsModule > {
21
22
return {
22
23
ngModule : MaterialCssVarsModule ,
23
- providers : [ { provide : MATERIAL_CSS_VARS_CFG , useValue : config } ] ,
24
+ providers : [ provideMaterialCssVars ( config ) ] ,
24
25
} ;
25
26
}
26
-
27
- // This is necessary, so the service is constructed, even if the service is never injected
28
- // ToDo: change to environment initializer, like in the provideMaterialCssVars() function below
29
- constructor ( private materialCssVarsService : MaterialCssVarsService ) { }
30
27
}
31
28
32
29
export function provideMaterialCssVars (
You can’t perform that action at this time.
0 commit comments