• 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

25.0
/src/rate/examples/template/template.component.ts
1
import { AfterViewInit, ChangeDetectionStrategy, Component, TemplateRef, viewChild } from '@angular/core';
2
import { FormsModule } from '@angular/forms';
3
import { ThyRate } from 'ngx-tethys/rate';
4

5
@Component({
6
    selector: 'thy-rate-template-example',
7
    templateUrl: './template.component.html',
1✔
8
    changeDetection: ChangeDetectionStrategy.OnPush,
9
    imports: [ThyRate, FormsModule]
×
10
})
×
11
export class ThyRateTemplateExampleComponent implements AfterViewInit {
×
12
    readonly icon1 = viewChild<TemplateRef<any>>('icon1');
×
13

×
14
    readonly icon2 = viewChild<TemplateRef<any>>('icon2');
×
15

×
16
    readonly icon3 = viewChild<TemplateRef<any>>('icon3');
×
17

×
18
    readonly icon4 = viewChild<TemplateRef<any>>('icon4');
×
19

20
    readonly icon5 = viewChild<TemplateRef<any>>('icon5');
21

×
22
    value = 1;
×
23

24
    icon = 'smile';
1✔
25

1✔
26
    icons = ['angry', 'angry', 'expressionless', 'smile', 'smile'];
27

28
    templates: TemplateRef<any>[] = null;
29

30
    template: TemplateRef<any> = null;
31

32
    constructor() {}
33

1✔
34
    ngAfterViewInit(): void {
35
        this.templates = [this.icon1(), this.icon2(), this.icon3(), this.icon4(), this.icon5()];
36
        this.template = this.icon5();
37
    }
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

© 2026 Coveralls, Inc