• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

atinc / ngx-tethys / #55

30 Jul 2025 07:08AM UTC coverage: 9.866% (-80.4%) from 90.297%
#55

push

why520crazy
feat(empty): add setMessage for update display text #TINFR-2616

92 of 6794 branches covered (1.35%)

Branch coverage included in aggregate %.

2014 of 14552 relevant lines covered (13.84%)

6.15 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

42.86
/src/comment/comment.component.ts
1
import { isTemplateRef } from 'ngx-tethys/util';
2
import { SafeAny } from 'ngx-tethys/types';
3
import { ChangeDetectionStrategy, Component, TemplateRef, input } from '@angular/core';
4
import { ThyAvatar } from 'ngx-tethys/avatar';
5
import { ThyStringOrTemplateOutletDirective } from 'ngx-tethys/shared';
6
import { NgTemplateOutlet } from '@angular/common';
7

8
/**
9
 * 评论组件
10
 * @name thy-comment
11
 */
12
@Component({
13
    selector: 'thy-comment',
1✔
14
    templateUrl: './comment.component.html',
15
    host: {
×
16
        class: 'thy-comment'
×
17
    },
×
18
    changeDetection: ChangeDetectionStrategy.OnPush,
×
19
    imports: [NgTemplateOutlet, ThyStringOrTemplateOutletDirective, ThyAvatar]
20
})
1✔
21
export class ThyComment {
22
    /**
23
     * 展示评论作者
24
     */
25
    readonly thyAuthor = input<string | TemplateRef<SafeAny>>();
26

1✔
27
    /**
28
     * 展示评论时间
29
     */
30
    readonly thyDatetime = input<string | TemplateRef<SafeAny>>();
31

32
    /**
33
     * 展示评论作者头像
34
     */
35
    readonly thyAvatar = input<string | TemplateRef<SafeAny>>();
36

37
    isTemplateRef = isTemplateRef;
38
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc