1.0.5 • Published 4 years ago

ng-pmp-image-slider v1.0.5

Weekly downloads
68
License
-
Repository
github
Last release
4 years ago

Angular-Image-Slider

A simple Image Slider module for Angular Application {The library is under development}

1) Image preview option - (Image will be displayed in the Dialog box) 2) It shows progress bar until the image has not been loaded properly

Getting started

Installation

npm install ng-pmp-image-slider

Setup

Import ImageSliderModule on your app.module.ts:

...
import { ImageSliderModule } from 'ng-pmp-image-slider';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    ImageSliderModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Add the component to your AppComponent template:

<pmp-image-slider [images]="imageList"></pmp-image-slider>

Add the property name as imageList in AppComponent.ts:

import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {

  imageList: string[] = ['https://images.com/img1.jpg','https://images.com/img2.jpg'] // etc
}

Options:

autoslide: To enable auto slide images based on flag, defualt value false.

duration: Takes number value in milisecond, which is configurable, defualt value 5000 ms (5 seconds).

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago