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

atinc / ngx-tethys / e4d330d0-1216-4f74-9ec9-6deafaa9d6f2

15 Apr 2025 05:27AM UTC coverage: 90.27% (+0.02%) from 90.254%
e4d330d0-1216-4f74-9ec9-6deafaa9d6f2

push

circleci

minlovehua
docs: introduce dependent components to solve console errors

5614 of 6878 branches covered (81.62%)

Branch coverage included in aggregate %.

13368 of 14150 relevant lines covered (94.47%)

922.27 hits per line

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

81.82
/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',
1✔
7
    templateUrl: './template.component.html',
8
    changeDetection: ChangeDetectionStrategy.OnPush,
5✔
9
    imports: [ThyRate, FormsModule]
5✔
10
})
5✔
11
export class ThyRateTemplateExampleComponent implements AfterViewInit {
5✔
12
    @ViewChild('icon1') icon1: TemplateRef<any>;
5✔
13

14
    @ViewChild('icon2') icon2: TemplateRef<any>;
15

×
16
    @ViewChild('icon3') icon3: TemplateRef<any>;
×
17

18
    @ViewChild('icon4') icon4: TemplateRef<any>;
1✔
19

1✔
20
    @ViewChild('icon5') icon5: TemplateRef<any>;
21

22
    value = 1;
23

24
    icon = 'smile';
25

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

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

30
    template: TemplateRef<any> = null;
31

32
    constructor() {}
33

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