(changes: SimpleChanges)
| 50 | constructor(private el: ElementRef, private renderer: Renderer2) {} |
| 51 | |
| 52 | ngOnChanges(changes: SimpleChanges) { |
| 53 | const { autoplay, autoplaySpeed, transitionSpeed } = changes; |
| 54 | if ((autoplay || autoplaySpeed) && (!this.autoplay || !this.autoplaySpeed)) { |
| 55 | this.clearScheduledTransition(); |
| 56 | } else { |
| 57 | this.autoScheduleTransition(); |
| 58 | } |
| 59 | if (transitionSpeed && this.transitionSpeed) { |
| 60 | this.renderer.setStyle(this.box.nativeElement, 'transition', `top ${this.transitionSpeed}ms ease`); |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | ngAfterViewInit(): void { |
| 65 | this.renderCarouselItem(); |
nothing calls this directly
no test coverage detected