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

naver / egjs-flicking / 4827004752

pending completion
4827004752

Pull #788

github

GitHub
Merge bbd94c2d7 into ec5f6fd72
Pull Request #788: feat(ngx-flicking): upgrade to Angular 15 and enable partial compilation

4468 of 7213 branches covered (61.94%)

Branch coverage included in aggregate %.

19 of 20 new or added lines in 3 files covered. (95.0%)

8390 of 8978 relevant lines covered (93.45%)

142.44 hits per line

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

87.5
/packages/ngx-flicking/projects/ngx-flicking/src/lib/ngx-flicking-panel.directive.ts
1
/*
2
 * Copyright (c) 2015 NAVER Corp.
3
 * egjs projects are licensed under the MIT license
4
 */
5
import { Directive, ElementRef, Renderer2 } from '@angular/core';
5✔
6
import Flicking from '@egjs/flicking';
7

8
@Directive({
9
  selector: '[flicking-panel], [FlickingPanel]',
10
  standalone: true,
11
})
12
export class NgxFlickingPanel {
5✔
13
  private _rendered: boolean;
14

15
  public get nativeElement() {
5✔
16
    return this._host.nativeElement;
347✔
17
  }
18

19
  public get rendered() {
5✔
NEW
20
    return this._rendered;
×
21
  }
22

23
  public constructor(
24
    private _host: ElementRef<HTMLElement>,
54✔
25
    private _renderer: Renderer2
54✔
26
  ) {
27
    this._rendered = true;
54✔
28
  }
29

30
  public show(flicking: Flicking) {
5✔
31
    this._rendered = true;
125✔
32

33
    const el = this.nativeElement;
125✔
34
    const cameraEl = flicking.camera.element;
125✔
35

36
    if (el.parentElement !== cameraEl) {
125!
37
      this._renderer.appendChild(cameraEl, el);
×
38
    }
39
  }
40

41
  public hide(flicking: Flicking) {
5✔
42
    this._rendered = false;
4✔
43

44
    const el = this.nativeElement;
4✔
45
    const cameraEl = flicking.camera.element;
4✔
46

47
    if (el.parentElement === cameraEl) {
4✔
48
      this._renderer.removeChild(cameraEl, el);
2✔
49
    }
50
  }
51
}
5✔
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