UI for Zipcoin Blue

slide.js 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import { ChangeDetectionStrategy, Component, ElementRef, Renderer, ViewEncapsulation } from '@angular/core';
  2. import { Slides } from './slides';
  3. /**
  4. * @name Slide
  5. * @description
  6. * The Slide component is a child component of [Slides](../Slides). The template
  7. * should be written as `ion-slide`. Any slide content should be written
  8. * in this component and it should be used in conjunction with [Slides](../Slides).
  9. *
  10. * See the [Slides API Docs](../Slides) for more usage information.
  11. *
  12. * @demo /docs/demos/src/slides/
  13. * @see {@link /docs/api/components/slides/Slides/ Slides API Docs}
  14. */
  15. var Slide = (function () {
  16. function Slide(elementRef, renderer, _slides) {
  17. this._slides = _slides;
  18. renderer.setElementClass(elementRef.nativeElement, 'swiper-slide', true);
  19. _slides.update(10);
  20. }
  21. /**
  22. * @hidden
  23. */
  24. Slide.prototype.ngOnDestroy = function () {
  25. this._slides.update(10);
  26. };
  27. Slide.decorators = [
  28. { type: Component, args: [{
  29. selector: 'ion-slide',
  30. template: '<div class="slide-zoom">' +
  31. '<ng-content></ng-content>' +
  32. '</div>',
  33. changeDetection: ChangeDetectionStrategy.OnPush,
  34. encapsulation: ViewEncapsulation.None,
  35. },] },
  36. ];
  37. /** @nocollapse */
  38. Slide.ctorParameters = function () { return [
  39. { type: ElementRef, },
  40. { type: Renderer, },
  41. { type: Slides, },
  42. ]; };
  43. return Slide;
  44. }());
  45. export { Slide };
  46. //# sourceMappingURL=slide.js.map