MCPcopy
hub / github.com/DevCloudFE/ng-devui / ngOnChanges

Method ngOnChanges

devui/alert/alert.component.ts:52–62  ·  view source on GitHub ↗
(changes: SimpleChanges)

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected