import { ChangeDetectionStrategy , Component , ElementRef , Renderer , ViewEncapsulation } from '@angular/core' ; import { Slides } from './slides' ; name description demo see {@link /docs/api/components/slides/Slides/ Slides API Docs} @ Component ( { selector : 'ion-slide' , template : '<div class="slide-zoom">' + '<ng-content></ng-content>' + '</div>' , changeDetection : ChangeDetectionStrategy . OnPush , encapsulation : ViewEncapsulation . None , } ) export class Slide { constructor ( elementRef , renderer , private _slides ) { renderer . setElementClass ( elementRef . nativeElement , 'swiper-slide' , true ) ; _slides . update ( 10 ) ; } hidden ngOnDestroy ( ) { this . _slides . update ( 10 ) ; } }