Skip to content

ravinderpayal/Angular-Image-And-Content-Slider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Angular-Image-And-Content-Slider

A simple component which accepts an array of image or content for sliding.

#How to install In app.odule.ts import contentSlider

import {SafeHtmlPipe, contentSlider, printSlide} from './path-to-content-slider-github-download';
@NgModule({
  declarations: [//-----,
  SafeHtmlPipe,
  contentSlider,
  printSlide,
  // ------],
  imports: [
  //------------
  ],
  //-----
  });

Basic Usage

    @Component({
        selector: 'ImageShow',
        template: `
        <contentSlider [slides]="images"></contentSlider>
        `
    })
    export class ImageShowComponent implements  AfterViewInit{
       images:Array<any> = [{"sType":"img","imgSrc":"..."},{"sType":"div","content":"...Hello It's slidable content"}];
      constructor(){
      }
    }

For having a full understanding of source-code please see this article

http://www.ravinderpayal.com/Simple-and-Light-Weight-Image-or-Content-Slider-for-Angular/

About

A simple component which accepts an array of image or content for sliding.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published