1.1.4 • Published 5 years ago

ng2-slider v1.1.4

Weekly downloads
63
License
-
Repository
github
Last release
5 years ago

Angular Slider Library

Angular slider library

How to use

Navigate to the level of your package.json and type

 npm install ng2-slider --save

or with yarn

 yarn add ng2-slider

Using in the angular application

Import in your module.

import { SliderModule } from 'ng2-slider';

@NgModule({
  imports: [
    SliderModule
  ]
})
export class AppModule { }

In your Html component

<lib-slider [slides]="slides"></lib-slider>

In your TS component declare the object

slides: ISlide[] = [  
   {  
      "img":"http://lorempixel.com/output/animals-q-g-640-320-10.jpg",
      "title":"<b> Some random title</b><br> example",
      "button":{  
         "text":"CLICK ON ME"
      }
   },
   {  
      "img":"http://lorempixel.com/output/animals-q-g-640-320-10.jpg",
      "title":"<b> Some random title</b><br> example",
      "button":{  
         "text":"CLICK ON ME"
      }
   },
   {  
      "img":"http://lorempixel.com/output/animals-q-g-640-320-10.jpg",
      "title":"<b> Some random title</b><br> example",
      "button":{  
         "text":"CLICK ON ME"
      }
   },
   {  
      "img":"http://lorempixel.com/output/animals-q-g-640-320-10.jpg",
      "title":"<b> Some random title</b><br> example",
      "button":{  
         "text":"CLICK ON ME"
      }
   }
]

You can use square bullets

<lib-slider [slides]="slides" [squareBullets]="true"></lib-slider>
1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago

0.0.1

6 years ago

0.0.0

7 years ago