File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
libs/blog/articles/feature-comments/src/lib/giscus-comments Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11
11
[attr.strict] ="config.strict ? '1' : '0' "
12
12
[attr.emitmetadata] ="config.emitMetadata ? '1' : '0' "
13
13
[attr.inputposition] ="config.inputPosition "
14
- [attr.theme] ="config. theme "
14
+ [attr.theme] ="theme() "
15
15
src ="https://giscus.app/client.js "
16
16
crossorigin ="anonymous "
17
17
async
Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ import {
14
14
GISCUS_CONFIG ,
15
15
provideComments ,
16
16
} from '@angular-love/blog/articles/data-access' ;
17
+ import { AppThemeStore } from '@angular-love/data-access-app-theme' ;
17
18
18
19
@Component ( {
19
20
selector : 'al-giscus-comments' ,
20
- imports : [ ] ,
21
21
templateUrl : './giscus-comments.component.html' ,
22
22
styleUrl : './giscus-comments.component.scss' ,
23
23
changeDetection : ChangeDetectionStrategy . OnPush ,
@@ -30,6 +30,7 @@ import {
30
30
export class GiscusCommentsComponent {
31
31
readonly config = inject ( GISCUS_CONFIG ) ;
32
32
readonly translocoService = inject ( TranslocoService ) ;
33
+ readonly theme = inject ( AppThemeStore ) . theme ;
33
34
34
35
readonly lang = toSignal ( this . translocoService . langChanges$ , {
35
36
initialValue : this . translocoService . getActiveLang ( ) ,
You can’t perform that action at this time.
0 commit comments