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

IgniteUI / igniteui-angular / 12910018683

22 Jan 2025 02:11PM CUT coverage: 91.611% (-0.003%) from 91.614%
12910018683

Pull #15287

github

web-flow
Merge 063924f5f into d4bf5f615
Pull Request #15287: Use provided in open method partial overlay settings - 19.0

12990 of 15228 branches covered (85.3%)

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

1 existing line in 1 file now uncovered.

26339 of 28751 relevant lines covered (91.61%)

34025.79 hits per line

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

50.0
/projects/igniteui-angular/src/lib/core/navigation/nav.service.ts
1
import { IToggleView } from './IToggleView';
2
import { Injectable } from '@angular/core';
3

4
/**
5
 * Common service to be injected between components where those implementing common
6
 * ToggleView interface can register and toggle directives can call their methods.
7
 * TODO: Track currently active? Events?
8
 */
9
@Injectable({ providedIn: 'root' })
10
export class IgxNavigationService {
2✔
11
    private navs: { [id: string]: IToggleView };
12

13
    constructor() {
14
        this.navs = {};
3,365✔
15
    }
16

17
    public add(id: string, navItem: IToggleView) {
18
        this.navs[id] = navItem;
140✔
19
    }
20

21
    public remove(id: string) {
22
        delete this.navs[id];
3,686✔
23
    }
24

25
    public get(id: string): IToggleView {
26
        if (id) {
11✔
27
            return this.navs[id];
11✔
28
        }
29
    }
30

31
    public toggle(id: string, ...args) {
32
        if (this.navs[id]) {
×
33
            return this.navs[id].toggle(...args);
×
34
        }
35
    }
36
    public open(id: string, ...args) {
37
        if (this.navs[id]) {
×
38
            return this.navs[id].open(...args);
×
39
        }
40
    }
41
    public close(id: string, ...args) {
42
        if (this.navs[id]) {
×
43
            return this.navs[id].close(...args);
×
44
        }
45
    }
46
}
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