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

IgniteUI / igniteui-angular / 15775541281

20 Jun 2025 09:12AM CUT coverage: 91.474% (+0.04%) from 91.437%
15775541281

Pull #15888

github

web-flow
Merge 9289ba2f1 into 625769a54
Pull Request #15888: fix(igxSplitter): Assign pane props after zone is stable.

13380 of 15692 branches covered (85.27%)

9 of 9 new or added lines in 2 files covered. (100.0%)

12 existing lines in 4 files now uncovered.

27037 of 29557 relevant lines covered (91.47%)

34146.46 hits per line

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

33.33
/projects/igniteui-angular/src/lib/core/navigation/directives.ts
1
import { Directive, HostListener, Input } from '@angular/core';
2
import { IgxNavigationService } from './nav.service';
3

4
/**
5
 * Directive that can toggle targets through provided NavigationService.
6
 *
7
 * Usage:
8
 * ```
9
 * <button type="button" igxNavToggle="ID">Toggle</button>
10
 * ```
11
 * Where the `ID` matches the ID of compatible `IToggleView` component.
12
 */
13
@Directive({
14
    selector: '[igxNavToggle]',
15
    standalone: true
16
})
17
export class IgxNavigationToggleDirective {
3✔
18
    @Input('igxNavToggle') private target;
19

20
    public state: IgxNavigationService;
21

22
    constructor(nav: IgxNavigationService) {
23
        this.state = nav;
×
24
    }
25

26
    @HostListener('click')
27
    public toggleNavigationDrawer() {
28
        this.state.toggle(this.target, true);
×
29
    }
30
}
31

32
/**
33
 * Directive that can close targets through provided NavigationService.
34
 *
35
 * Usage:
36
 * ```
37
 * <button type="button" igxNavClose="ID">Close</button>
38
 * ```
39
 * Where the `ID` matches the ID of compatible `IToggleView` component.
40
 */
41
@Directive({
42
    selector: '[igxNavClose]',
43
    standalone: true
44
})
45
export class IgxNavigationCloseDirective {
3✔
46
    @Input('igxNavClose') private target;
47

48
    public state: IgxNavigationService;
49

50
    constructor(nav: IgxNavigationService) {
51
        this.state = nav;
×
52
    }
53

54
    @HostListener('click')
55
    public closeNavigationDrawer() {
56
        this.state.close(this.target, true);
×
57
    }
58
}
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