import { ThySlideService } from 'ngx-tethys/slide' ; import { Component , TemplateRef } from '@angular/core' ; import { ThySlideDemoContentComponent } from '../slide-content.component' ; @ Component ( { selector : 'thy-slide-basic-example' , templateUrl : './basic.component.html' } ) export class ThySlideBasicExampleComponent { constructor ( private thySlideNewService ) { } showSlideWithComponent ( ) { this . thySlideNewService . open ( ThySlideDemoContentComponent , { id : 'withComponent' } ) ; } showSlideWithTemplate ( template ) { this . thySlideNewService . open ( template , { id : 'withTemplate' } ) ; } }