From 91a66a3c054555a32153a2f25caaed2c3bb9a264 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Mon, 24 Jun 2019 14:09:40 +0000 Subject: [PATCH] [Trunk|Library]: Create gif slider component. git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@56184 d315682c-612b-4755-9ff5-7f18f6832af3 --- utils/gif-slider/gif-slider.component.ts | 56 ++++++++++++++++++++++++ utils/gif-slider/gif-slider.module.ts | 19 ++++++++ 2 files changed, 75 insertions(+) create mode 100644 utils/gif-slider/gif-slider.component.ts create mode 100644 utils/gif-slider/gif-slider.module.ts diff --git a/utils/gif-slider/gif-slider.component.ts b/utils/gif-slider/gif-slider.component.ts new file mode 100644 index 00000000..45333ca4 --- /dev/null +++ b/utils/gif-slider/gif-slider.component.ts @@ -0,0 +1,56 @@ +import {Component, Input} from '@angular/core'; + +@Component({ + selector: 'gif-slider', + template: ` +
+ +
` +}) + +export class GifSliderComponent { + @Input() gifs: {"gif": string, "header": string, "text"}[]; +} diff --git a/utils/gif-slider/gif-slider.module.ts b/utils/gif-slider/gif-slider.module.ts new file mode 100644 index 00000000..39f466b4 --- /dev/null +++ b/utils/gif-slider/gif-slider.module.ts @@ -0,0 +1,19 @@ +import { NgModule} from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { RouterModule } from '@angular/router'; +import {GifSliderComponent} from "./gif-slider.component"; + +@NgModule({ + imports: [ + CommonModule, RouterModule + ], + declarations: [ + GifSliderComponent + ], + providers:[ + ], + exports: [ + GifSliderComponent + ] +}) +export class GifSliderModule { }