We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b2550f commit a18ec25Copy full SHA for a18ec25
lib/src/markdown.module.ts
@@ -40,16 +40,12 @@ const sharedDeclarations = [
40
})
41
export class MarkdownModule {
42
static forRoot(markdownModuleConfig?: MarkdownModuleConfig): ModuleWithProviders {
43
-
44
- const loaderProvider = markdownModuleConfig && markdownModuleConfig.loader || [];
45
- const markedOptionsProvider = markdownModuleConfig && markdownModuleConfig.markedOptions || initialMarkedOptions;
46
47
return {
48
ngModule: MarkdownModule,
49
providers: [
50
MarkdownService,
51
- loaderProvider,
52
- markedOptionsProvider,
+ markdownModuleConfig && markdownModuleConfig.loader || [],
+ markdownModuleConfig && markdownModuleConfig.markedOptions || initialMarkedOptions,
53
],
54
};
55
}
0 commit comments