Commit 69e2f0c115c48ec2f183a12cab8de4bcd02f485a
1 parent
0a3ac0f7
Fix marked options service - use single instance
Showing
1 changed file
with
3 additions
and
1 deletions
... | ... | @@ -24,7 +24,9 @@ const copyCodeBlock = '{:copy-code}'; |
24 | 24 | const targetBlankBlock = '{:target="_blank"}'; |
25 | 25 | |
26 | 26 | // @dynamic |
27 | -@Injectable() | |
27 | +@Injectable({ | |
28 | + providedIn: 'root' | |
29 | +}) | |
28 | 30 | export class MarkedOptionsService extends MarkedOptions { |
29 | 31 | |
30 | 32 | renderer = new MarkedRenderer(); | ... | ... |